Search This Blog

Rotational Matrix concept and application in MATLAB from Scratch

MATLAB Code:



Code:

t=0:0.01:2*pi;
x=sin(t);
plot(t,x,'g');
hold on;
a=-pi/2;
z=[cos(a) -sin(a);sin(a) cos(a)];
m=[t;x];
k=z*m;


r=k(1,:);
y=k(2,:);
plot(r,y,'b');



No comments

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();