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 comentarios

Stephen23
Stephen23 el 15 de Mayo de 2020
That is not a new syntax, MATLAB has supported function syntax for a very very long time:
Steven Lord
Steven Lord el 15 de Mayo de 2020
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 el 15 de Mayo de 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 el 15 de Mayo de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Printing and Saving en Centro de ayuda y File Exchange.

Productos

Versión

R2019b

Etiquetas

Preguntada:

el 15 de Mayo de 2020

Comentada:

el 15 de Mayo de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by