Cannot save or print figures - Error using printopt

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일

1 개 추천

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일

0 개 추천

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

0 개 추천

I tried this: restoredefaultpath rehash toolboxcache savepath
Then I restarted Matlab and the problem was solved.

카테고리

도움말 센터File Exchange에서 Printing and Saving에 대해 자세히 알아보기

질문:

2018년 5월 15일

답변:

2018년 9월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by