フィルターのクリア

Cannot save or print figures - Error using printopt

14 ビュー (過去 30 日間)
Lisa Lampp
Lisa Lampp 2018 年 5 月 15 日
回答済み: Lisa Lampp 2018 年 9 月 3 日
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 Center および File ExchangePrinting and Saving についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by