R*M*C ans = -2.4395e+03 C'*M*R' ans = 961.8050 C'*M'*R' ans = -2.4395e+03 C*M*R ??? Error using ==> mtimes Inner matrix dimensions must agree.