I need to create an ocatve script which will generate a 2D-plot and then directly export it as image without actually plotting it.
Hypothetical Example:
x=1:10;
exportDirectly(x,'myImage.jpg');
Is this possible?
I need to create an ocatve script which will generate a 2D-plot and then directly export it as image without actually plotting it.
Hypothetical Example:
x=1:10;
exportDirectly(x,'myImage.jpg');
Is this possible?
You can create a figure, but turn of visibility. Then plot and save as usual.
something like
fh = figure()
fh.set('Visible','Off')
%Some Plotting here
print(fh)
That might be of some help...