display text when running exe in dos command window

2 views (last 30 days)
After upgrading from Matlab 2015a to Matlab 2022a, I noticed that disp() function does not print anything when running the exe in dos command window. I want to see the display so I know the progress. How can I see the display again?
function dispTest
x = 5;
disp(x)
end

Accepted Answer

Walter Roberson
Walter Roberson on 6 Feb 2023
When you compile use the -m option; in particular do not use the -e option.
  2 Comments
Walter Roberson
Walter Roberson on 7 Feb 2023
The deploytool option you unchecked should be the same as using the -m option.

Sign in to comment.

More Answers (0)

Categories

Find more on File Operations in Help Center and File Exchange

Tags

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!