- #1
- 8
- 0
Code:
function out = rotatex(angle, in)
m=[1 0 0 0; 0 cos(angle) -sin(angle) 0; 0 sin(angle) cos(angle) 0; 0 0 0 1];
out = m*in;
Code:
>> out = rotatex(in, pi/4);
??? Error using ==> horzcat
CAT arguments dimensions are not consistent.
Error in ==> rotatex at 2
m=[1 0 0 0; 0 cos(angle) -sin(angle) 0; 0 sin(angle) cos(angle) 0; 0 0 0 1];
Help much appreciated. In the meantime I'll just head off on a murderous rampage...wanders off muttering expletives.