Azzera filtri
Azzera filtri

Cannot save or print figures - Error using printopt

13 visualizzazioni (ultimi 30 giorni)
Lisa Lampp
Lisa Lampp il 15 Mag 2018
Risposto: Lisa Lampp il 3 Set 2018
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?

Risposte (3)

Lisa Lampp
Lisa Lampp il 3 Set 2018
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 il 30 Ago 2018
I have the same problem. Why Matlab does not solve this problem?

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

Categorie

Scopri di più su Printing and Saving in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by