%script to plot stress diagram, plain stress close all figure; axis([-1 1 -1 1]); h1=nma_rectangle( -0.25,-0.25,0.25,0.25,'LineWidth',2 ); h2=nma_arrow( 0.27,-0.22,0.27,0.22,'HeadStyle','hypocycloid','HeadLength',10,'HeadWidth',6 ); h3=nma_arrow( 0.27,0,0.37,0,'HeadStyle','hypocycloid','HeadLength',10,'HeadWidth',6 ); %axescenter set(gca,'XTick',[]); set(gca,'YTick',[]); set(gca,'Linewidth',.01); set(gca,'YColor',[211 211 211]/255); set(gca,'XColor',[211 211 211]/255); for i=1:30 rotate(h1,[0,0,1],1); rotate(h2,[0,0,1],1); rotate(h3,[0,0,1],1); pause(0.1); drawnow end