From: Shota on
I'm trying to write a script that saves a figure in png format.

My figures are best viewed when stretched side-way, so I want the saved figures to be of the size 8 inches (height) and 16 inches (width).

How do I do that with the print function ? If you could give me an example, that would be great.
From: Ross W on
"Shota " <shotaemail(a)gmail.com> wrote in message <i2si1s$259$1(a)fred.mathworks.com>...
> I'm trying to write a script that saves a figure in png format.
>
> My figures are best viewed when stretched side-way, so I want the saved figures to be of the size 8 inches (height) and 16 inches (width).
>
> How do I do that with the print function ? If you could give me an example, that would be great.

Hi

This might get you started:

>> figure('paperunits','in','paperposition',[.5 .5 16 8])
>> plot(1:10)
>> print -dpng test

Ross