octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with savefig


From: Andrew Janke
Subject: Re: Help with savefig
Date: Tue, 30 Oct 2018 17:47:06 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Doesn't change the value.

Per https://www.mathworks.com/help/matlab/ref/matlab.ui.figure-properties.html, it looks like FileName is for GUIDE's use:

--------------------------

FileName — File name
character vector | string scalar
File name for saving the figure, specified as a character vector or a string scalar. GUIDE uses this property to store the name of the UI layout file that it saves.

Example: figure('FileName','myfile.fig') sets the file name to myfile.fig.

--------------------------

Cheers,
Andrew

On 10/30/18 5:41 PM, Rik wrote:
10/30/18

Could someone with access to Matlab run the following code?

--- Code ---
h = figure ();
sombrero
get (h, 'FileName')
savefig (h, "myfig")
get (h, 'FileName')
--- End Code ---

I'm expecting that FileName will be filled in with the name of the figure
which might be "myfig", "myfig.fig", or the full name and path to the
figure.  But this is Matlab so it might do none of these things.

Thanks,
Rik






reply via email to

[Prev in Thread] Current Thread [Next in Thread]