I have created a.fig file which is set to 'visible' however when I try and open this either using File >Open or openfig it is not seen. All suggestions I have found on the web suggest setting it to 'visible'. Can anyone help?

2 Kommentare

Star Strider
Star Strider am 22 Jun. 2016
The best approach is to upload your .fig file here so we can see if we can reproduce the problem.
ROHIT KUMAR RASTOGI
ROHIT KUMAR RASTOGI am 3 Jan. 2022
openfig('Bode_plot_(unstable).fig')

Melden Sie sich an, um zu kommentieren.

Antworten (2)

gringer45
gringer45 am 3 Feb. 2021

4 Stimmen

I would try something like this. Although in your case the figure is already 'visible' 'on' and setting the visibility is not needed.
openfig('DTfit_1.0.fig')
f = gcf;
set(f,'visible','on')

1 Kommentar

Ryan Godwin
Ryan Godwin am 20 Jul. 2021
Bearbeitet: Ryan Godwin am 20 Jul. 2021
I was having a similar problem and this solution worked for me! As others have commented the other answer is incorrect, maybe this one should be changed to the accepted answer.

Melden Sie sich an, um zu kommentieren.

Shameer Parmar
Shameer Parmar am 22 Jun. 2016

0 Stimmen

for your a.fig, do you have a.m file available with you? if yes, then you can run that .m file and or call that .m file wherever you want, then that fig file (GUI) will open..
If you want to edit that .fig file, then use ' guide' command.
Run guide command then go to tab for ' open existing GUI' browse your .fig file and the edit it..

5 Kommentare

Gavin Seddon
Gavin Seddon am 23 Jun. 2016
Hello thank you for the reply, this opens a blank workspace and there is no import option to recover my data. I will investigate M file creation (new). It appears this command will be useful in future anyway.
Guillaume
Guillaume am 23 Jun. 2016
Bearbeitet: Guillaume am 23 Jun. 2016
Using guide to open a figure will only work if the figure is a GUI figure originally generated with guide.
Opening a standard matlab figure with guide is not recommended. guide will remove any object it does not support such as legends, colorbars, etc.
As per Star Strider's comment, upload your figure here, so we can see what is going on.
Gavin Seddon
Gavin Seddon am 21 Jul. 2016
Thanks here it is.
Guillaume
Guillaume am 21 Jul. 2016
That figure is definitively not a gui figure and opening it with guide will discard most of it. The accepted answer is completely wrong.
I have no problem opening that figure (with openfig or simple double-click) and it is immediately visible.
gringer45
gringer45 am 3 Feb. 2021
I agree this answer is 100% wrong.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Printing and Saving finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 22 Jun. 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by