Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m=moviein(10);
- x=0:pi/100:pi;
- for i=1:10
- h1_line=plot(x,sin(i*x));
- % set(h1_line,'LineWidth',5,'Color','b')
- % grid
- % title('sin(kx)')
- % h=get(gca,'title');
- % set(h,'FontSize',12)
- % xlabel('x')
- k = num2str(i);
- if i>1
- s=['sin(',k,'x)'];
- else
- s='sin(x)';
- end
- % ylabel(s)
- % h=get(gca,'ylabel');
- % set(h,'FontSize',12)
- m(:,i)=getframe;
- % pause(2)
- end
- movie(m)
- %clf
Add Comment
Please, Sign In to add comment