scripts close plot windows automatically
Ben Abbott
bpabbott at mac.com
Wed Mar 19 18:04:56 CDT 2008
On Mar 19, 2008, at 6:23 PM, Nicholas T wrote:
> Hi all,
>
> I would like for a script not to close a plot window. The best I
> could find online was using the pause() function, which is sorta
> crappy (compared to having the user actually close the window).
> Please tell me if you know a better way.
>
> e.g. save the following to a .m file, and execute
> plot([0:0.1:1], [0:0.1:1])
>
> Thanks,
> Nicholas
Try
close (gcf)
It doesn't work for me on OSX, but I'm of the impression it does on
other platforms.
What version of Octave are your running?
Ben
More information about the Help-octave
mailing list