Cannot save or print figures - Error using printopt

13 次查看(过去 30 天)
Dear all,
since a few days I can´t print or save figures in Matlab. When I try to do it, I get the following message:
Error using printopt
Too many input arguments.
Error in matlab.graphics.internal.mlprintjob
Error in printjob (line 22)
pj = matlab.graphics.internal.mlprintjob;
Error in filemenufcn>localExportTypes (line 355)
[a,opt,ext,d,e,output,name]=printtables(printjob(hfig));
%#ok
Error in filemenufcn>localSaveExport (line 308)
typesorig = localExportTypes(hfig);
Error in filemenufcn (line 60)
localSaveExport(hfig, false)
Error while evaluating Menu Callback.
Can anyone help me?

回答(3 个)

Lisa Lampp
Lisa Lampp 2018-9-3
Dear Omar,
I asked also the support team what to do.
This is the answer I got:
This issue is caused by accidentally shadowing an internal function in MATLAB.
Please execute the following command:
>> which -all printopt
This should only return a single line which looks something like the following on a windows machine:
C:\Program Files\MATLAB\R2018a\toolbox\local\printopt.m
If there are any other files returned which are not within the MATLAB root directory, they must be deleted or renamed.
This should fix the printing issue.
In my case this worked.
Best regards, Lisa

Omar Longoria
Omar Longoria 2018-8-30
I have the same problem. Why Matlab does not solve this problem?

Omar Longoria
Omar Longoria 2018-8-30
I tried this: restoredefaultpath rehash toolboxcache savepath
Then I restarted Matlab and the problem was solved.

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by