Matlab R2022b won't save .fig

6 visualizaciones (últimos 30 días)
Dominik Rohrbach
Dominik Rohrbach el 12 de Feb. de 2024
Comentada: Dominik Rohrbach el 14 de Feb. de 2024
Hi everyone,
I'm currently experiencing an issue where Matlab won't let me save a figure as .fig. I've tried saveas, savefig or manually saving the figure. It doens't even give me an error message it just doesn't create a file.
Does anyone know why this happens or how to fix it?
  4 comentarios
Star Strider
Star Strider el 12 de Feb. de 2024
I believe .fig files are saved as .mat files. Can you save .mat files?
Joe Vinciguerra
Joe Vinciguerra el 13 de Feb. de 2024
Is it possible that your operating system is hiding .fig files?

Iniciar sesión para comentar.

Respuesta aceptada

Steven Lord
Steven Lord el 12 de Feb. de 2024
Let's make sure you haven't created your own savefig.m that is taking precedence over the savefig function that is part of MATLAB. What does this command show?
which -all savefig
/MATLAB/toolbox/matlab/graphics/objectsystem/savefig.m
If you see your own function ahead of the one in toolbox/matlab/graphics/objectsystem, rename your function.
  1 comentario
Dominik Rohrbach
Dominik Rohrbach el 14 de Feb. de 2024
Thank you that solved it!
I had a toolbox installed which seems to have overwritten the savefig function

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Printing and Saving en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by