Borrar filtros
Borrar filtros

error while ploting and save

1 visualización (últimos 30 días)
Shaukat
Shaukat el 20 de Oct. de 2023
Comentada: Walter Roberson el 20 de Oct. de 2023
When run show this error even Mapping Toolbox is installed
Warning: Probably because you do not have Mapping Toolbox, getar was performed by an approximative method.
> In getar (line 24)
2nd not save figures
  5 comentarios
Shaukat
Shaukat el 20 de Oct. de 2023
Can some guide mefor right person who resolved my simple issue .ie., why not my installed matlab not save figure.?
Walter Roberson
Walter Roberson el 20 de Oct. de 2023
Experiment with giving the command
restoredefaultpath; rehash toolboxcache
and then run your code again. If the code starts working then you have a function somewhere on your path (such as a third-party toolbox) that has the same name as a Mathworks function and is interfering with the Mathworks function. If the code does not start working, then there might still be the same problem but with the interfering function being in your current directory.
I notice that the error message does not give a line number within printopt even though that is .m source code, such as at toolbox/local/printopt.m . That hints that you are somehow invoking a different printopt .
The supplied printopt does not itself check the number of input arguments, and ignores its input arguments. It calls upon the functions isempty, message, strcmp, system_dependent, warning (and also ispc but does not supply any parameters to that call). All of those are important internal functions; if you are somehow redefining those then you would have run into a lot of other problems. So I would tend to suspect that the problem would be in a different printopt being invoked.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Graphics Object Properties en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by