Automatically determine c or c++-mode of headers based on presence of .c file

Changing back to matlab-mode for .m files