フィルターのクリア

Unable to see figures

60 ビュー (過去 30 日間)
Willy Wong
Willy Wong 2023 年 1 月 4 日
コメント済み: Walter Roberson 2023 年 8 月 28 日
I am using MATLAB R2022b Update 2 (9.13.0.2105380) 64-bit (maci64)
I prefer to use matlab on my mac via the command line through terminal.
In the past I used to run matlab using 'matlab -nojvm' but eventually it no longer supported figures.
Later, I used 'matlab -nodesktop' to do the same. I used this successfully as recently as ver R2021a. No difficulties plotting or using figures.
However, since upgrading to R2022b, I can no longer see figures. The commands 'plot' and 'figure' yield no errors, no messages -- and no figures either.
Any clues on how to get the figures to come back under -nodesktop option?

回答 (1 件)

Aashita Dutta
Aashita Dutta 2023 年 1 月 9 日
Hello Willy,
I understand that you are unable to see figures using ‘plot’ or ‘figure’ commands using ‘matlab -nodesktop’ command to open MATLAB in mac machine.
Please find below couple of ways to resolve this:
1. From the system prompt, set the $DISPLAY environment variable:
setenv DISPLAY :0.0
matlab
OR
2. Set the DISPLAY as you start MATLAB:
matlab -display :0.0
Please find below some MATLAB Answers posts for further information:
  1. MATLAB Figures not appear when starting MATLAB from terminal on Mac OS- https://www.mathworks.com/matlabcentral/answers/99976-why-does-the-matlab-desktop-and-or-matlab-figures-not-appear-when-starting-matlab-from-the-terminal
  2. Figures won’t come up after using plot: https://www.mathworks.com/matlabcentral/answers/7481-figure-won-t-come-up-after-using-plot
Hope that helps.
  7 件のコメント
Brandon Lopez
Brandon Lopez 2023 年 8 月 28 日
編集済み: Brandon Lopez 2023 年 8 月 28 日
Same here!
Has anyone solved this issue? :(
Walter Roberson
Walter Roberson 2023 年 8 月 28 日
Please check
which -all plot
and report the answers back to us.

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

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by