Clear Filters
Clear Filters

error while ploting and save

1 view (last 30 days)
Shaukat
Shaukat on 20 Oct 2023
Commented: Walter Roberson on 20 Oct 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 Comments
Shaukat
Shaukat on 20 Oct 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 on 20 Oct 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.

Sign in to comment.

Answers (0)

Categories

Find more on Graphics Object Properties in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!