figure does not print or print preview

5 ビュー (過去 30 日間)
Vahid
Vahid 2020 年 5 月 16 日
回答済み: Yash 2025 年 1 月 28 日
When I try print a figure or even print preview the figure I get the error below. This happens with 2019b version. Thanks.
rror 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.
  1 件のコメント
Sourabh
Sourabh 2025 年 1 月 24 日
Can you share the figure code for which you are getting the error?

サインインしてコメントする。

回答 (1 件)

Yash
Yash 2025 年 1 月 28 日
Hi Vahid,
It looks like you are providing some input to the "printopt" function. According to the following documentation https://www.mathworks.com/help/matlab/ref/printopt.html , the "printopt" function does not take any input, while it provides two outputs. Please refer to the documentation for more details.
You can edit the file printopt.m to set your default printer type and destination. There is no function for it.
Hope this helps!

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by