image_viewer usage

lukshuntim at gmail.com lukshuntim at gmail.com
Fri May 1 22:25:04 CDT 2009


Valmor de Almeida wrote:
> Hello,
> 
> I would like to use display as my image viewer to display a scaled 
> version of a large image:
> 
> display -resize 10%   imagefile.png
> 
> This command does not work:
> 
>   image_viewer("display -resize 10%  %s");
> 
> and I am not sure about the image_viewer() syntax. Could someone help?

Hi Valmor,

Try
image_viewer("display -resize 10%%  %s");

The first % has to be escaped. See
http://www.gnu.org/software/octave/doc/interpreter/Formatted-Output.html#Formatted-Output

Regards,
ST
--



More information about the Help-octave mailing list