new print syntax does not work

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

Stephen23
Stephen23 2020년 5월 15일
That is not a new syntax, MATLAB has supported function syntax for a very very long time:
Steven Lord
Steven Lord 2020년 5월 15일
What does "does not work" mean?
  • Do you receive warning and/or error messages? If so the full and exact text of those messages (all the text displayed in orange and/or red in the Command Window) may be useful in determining what's going on and how to avoid the warning and/or error.
  • Does it do something different than what you expected? If so, what did it do and what did you expect it to do?
  • Did MATLAB crash? If so please send the crash log file (with a description of what you were running or doing in MATLAB when the crash occured) to Technical Support using the telephone icon in the upper-right corner of this page so we can investigate.
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.
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개)

카테고리

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

제품

릴리스

R2019b

태그

질문:

2020년 5월 15일

댓글:

2020년 5월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by