nukeymusic
2009-12-09 16:10:55 UTC
I have a for-loop and want to use the current value of the for-loop
variable to plot each time to a different file:
x=0:0.1:10;
for i=1:3
matfilename = sprintf('mat%d.eps', i);
plot(x,i*sin(x))
print -deps ?????????
pause
end
the idea is to get mat1.eps, mat2.eps ...
how is this done in octave?
thanx
variable to plot each time to a different file:
x=0:0.1:10;
for i=1:3
matfilename = sprintf('mat%d.eps', i);
plot(x,i*sin(x))
print -deps ?????????
pause
end
the idea is to get mat1.eps, mat2.eps ...
how is this done in octave?
thanx