display text when running exe in dos command window
3 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
Walter Roberson
2023-2-6
When you compile use the -m option; in particular do not use the -e option.
2 个评论
Walter Roberson
2023-2-7
The deploytool option you unchecked should be the same as using the -m option.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Compiler SDK 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!