function y = Ry( ang ) % Rotate Matrix by rotation axis Y % Detailed explanation goes here y=[cos(ang),0,-sin(ang);0,1,0;sin(ang),0,cos(ang)]; end