error while ploting and save
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
Walter Roberson
2023-10-20
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.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Printing and Saving 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!