new print syntax does not work

조회 수: 3 (최근 30일)
Vahid
Vahid 2020년 5월 15일
댓글: Steven Lord 2020년 5월 15일
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
Vahid
Vahid 2020년 5월 15일
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 2020년 5월 15일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Printing and Saving에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by