add missing file mec.m, resolves issue #48