new print syntax does not work

3 views (last 30 days)
Vahid
Vahid on 15 May 2020
Commented: Steven Lord on 15 May 2020
Print command before used to be print -dpdf ...
Now it takes arguments in paranthesis print('-dpdf')
The new sysntax does not work for me. Even when I use the print from Figure drop down menu, does not work.
Any help is appreciated. Thanks
  4 Comments
Vahid
Vahid on 15 May 2020
Thanks for the reply. I am trying to simply print a figure. I cannot even save as jpeg. Here is the error:
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 print>LocalCreatePrintJob (line 102)
pj = printjob([handles{:}]);
Error in print (line 38)
[pj, inputargs] = LocalCreatePrintJob(varargin{:});
Error in printdlg (line 63)
print(Fig, '-v');
Error while evaluating Menu Callback.
Steven Lord
Steven Lord on 15 May 2020
Let's make sure you're using the correct version of the printopt function. What does this command display?
which -all printopt
Looking in printopt ... I seem to remember an Answers post recently where someone was having trouble calling the system_dependent function though I can't find that post now at a quick search. Was that you? If so that problem may be related to the failure in printopt, since printopt can call system_dependent on Windows.

Sign in to comment.

Answers (0)

Categories

Find more on Printing and Saving in Help Center and File Exchange

Tags

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!