'Run selection' codes don't appear on Command Window of Matlab 2022a for Mac

조회 수: 6 (최근 30일)
I have been using Matlab 2022a on my Windows laptop for a while. Recently I purchased a Macbook Pro 2021, and installed Matlab 2022a on it. I see that when I run some lines of code (using 'run selection') from a file open in the editor, the lines are executed but nothing apprears on the command window of Matlab. However, if one of the lines is missing a semicolon (;) in the end, or is printing something (using disp()), that gets printed on the command window.
This is different from what I am used to in windows, where the selected lines are printed on the command window when 'run selected'. How can I fix this?
  댓글 수: 1
Ayush Anand
Ayush Anand 2023년 8월 31일
Hi Anirudha,
Could you provide more information about the macOS version you are using

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

답변 (1개)

Shuba Nandini
Shuba Nandini 2023년 9월 7일
Hello Anirudha,
I understand you are facing an issue with Command window which doesn’t show any output when using ‘Run selection. I created a script in MATLAB R022a and used ‘Run selection’ to check the output on Command Window. However, I was unable to reproduce the issue at my end.
Please follow the below troubleshooting steps for the Command Window to show the output:
  • check the lower-right corner of the Command Window. If it shows "Initializing”, try the steps in this Answer. If it shows "Busy", MATLAB is running some code. Depending on what that code is doing, it may take a while and you won't be able to execute other commands while that code is running. You can type ahead but they won't get executed until MATLAB has finished its current work.
  • You can try resetting the MATALB to it’s launched state.
  • As a workaround, you can highlight the code and press Cmd+Enter’ to print the output on command window.
Hope this helps!
Regards,
Shuba Nandini

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by