How can I solve "Invalid object handle" error when trying to open a .fig?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
When I try to open a figure using open('my_figure.fig'), I have this error message:
What are some likely issues?
The figure was saved using
saveas(gcf,'my_figure.fig', 'fig')
in a Matlab script that was run from the Linux shell:
matlab -nodesktop -r "run my_script; exit;"
Thanks, F
2 comentarios
David Sanchez
el 22 de Jul. de 2013
Can you open the figure somehow? I downloaded it and could not open it, which could mean the file is damaged.
Respuestas (2)
David Sanchez
el 22 de Jul. de 2013
Try doing it with a figure handle:
h = figure;
plot(1:4,5:8)
saveas(h,'my_fig.fig')
0 comentarios
Jan
el 22 de Jul. de 2013
You need to call the M-file to open a GUI, while opening a GUI just by opening the FIG file creates such errors, because the OpeningFcn or CreateFcn did not run (as far as I know, but I'm not using GUIDE for exactly such reasons).
0 comentarios
Ver también
Categorías
Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!