Next: edemo2.m
Up: Examples
Previous: Examples
  Contents
x1=[0:0.01:2*pi];
x2=[0:0.2:2*pi];
eopen('demo1.eps') % open eps-file and write eps-head
% fill area
eplot(x1,cos(x1)*0.2,'cosfill',-1,[0.8 0.8 0.2])
% plot single lines
eplot([x2;x2],[cos(x2)*0.5;sin(x2)],'diff',0,[0.5 0.5 0.3],0.5)
% plot red solid line
eplot(x1,sin(x1),'sin',0,[1 0 0],2)
% plot blue dash line
eplot(x1,cos(x1)*0.5,'cosine',2,[0 0 1],1)
eclose % close eps-file
eview % start ghostview with eps-file
Stefan Müller
2002-01-15