Hi,
In order to save the plots you need a figure object with an axes object on it. The figure can be invisible. Do the following:
hf=figure('Visible','off');
hx=axes('Parent',hf)
for n=1:N
plot(x(:,n),y(:,n),'Parent',hx);
print(hf,'-deps',['tryplot' num2str(n)])
end
Note: By default the new...