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

14 vues (au cours des 30 derniers jours)
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 commentaire
Ayush Anand
Ayush Anand le 31 Août 2023
Hi Anirudha,
Could you provide more information about the macOS version you are using

Connectez-vous pour commenter.

Réponses (1)

Shuba Nandini
Shuba Nandini le 7 Sep 2023
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

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by