Borrar filtros
Borrar filtros

save as .fig

9 visualizaciones (últimos 30 días)
Henar Martín-Sanz
Henar Martín-Sanz el 8 de En. de 2018
Editada: Henar Martín-Sanz el 22 de Abr. de 2018
I am trying to save a figure as .fig but I receive the following error in a pop up window: "Error using matlab.ui.Figure/horzcat Conversion to matlab.ui.Figure from char is not possible". I also see the following warning: | Warning: Inputs must be character vectors, cell arrays of character vectors, or string arrays. > In savefig In saveasfig (line 6) In saveas (line 140) In filemenufcn>localSaveExportHelper (line 216) In filemenufcn>localSaveExport (line 344) In filemenufcn (line 56) In filemenufcn>localSave (line 186) In filemenufcn (line 54)|
It happens both with 2014b and 2016b versions. I can save the figures as .eps or .jpg, but I need them as .fig. Any ideas?
Thanks!

Respuestas (1)

Manan Mishra
Manan Mishra el 11 de En. de 2018
Editada: Manan Mishra el 11 de En. de 2018
The error you are getting could be due to a shadowing issue.
You can try the following steps and see if this resolves the issue:
1. Execute the following commands in MATLAB command prompt:
>> restoredefaultpath
>> rehash toolboxcache
2. Trying saving the figure again.
3. If it works, save the default path.
>> savepath
  1 comentario
Henar Martín-Sanz
Henar Martín-Sanz el 12 de En. de 2018
Editada: Henar Martín-Sanz el 22 de Abr. de 2018
Hi,
The problem I have is that I am using a program, and I need to add certain toolboxes to the path when I start it:
addpath(genpath([matlabroot,'\toolbox\spice33-2014-07a'])) addpath(genpath([matlabroot,'\toolbox\sigfun-2008-10a']))
If I folow the steps you suggested, I can not use the program any longer, I guess because I loose the added toolboxes. I need to have the program open to save the figure. Is there any other way to solve this?
Thanks!

Iniciar sesión para comentar.

Categorías

Más información sobre Environment and Settings 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