Long time no Matlab, got this error:
??? Error using ==> mpower
Matrix must be square.
The mathematical operators *, /, and ^ each should have a dot “.” in front of them. This is a MATLAB convention that ensures that when the function’s argument is a vector of positions.