Code covered by the BSD License
clear all clc x=1:10:720; x=x*pi/180; y1=sin(x); y2=0.5*cos(x); xl='Time'; yl='Displacement'; file='sinewave.tiff'; h=figure; plot(x,y1,'ko-') hold on plot(x,y2,'k^-') xlim([0,2*pi]) plotpub(h,xl,yl); %Using Optional arguments %plotpub(h,xl,yl,file) %plotpub(h,xl,yl,file,3.5) %plotpub(h,xl,yl,file,3.5,600) %plotpub(h,xl,yl,file,3.5,600) %plotpub(h,xl,yl,file,3.5,600,2)
Contact us