Info
此问题已关闭。 请重新打开它进行编辑或回答。
mcc compiled executable didn't work!!
4 次查看(过去 30 天)
显示 更早的评论
I tried to compile the following simple file(hello.m) as below,
mcc -mv hello.m
=====================
function hello
disp('Hello World!')
=====================
However, the compiled hello.exe didn't work at all:
When I tried to run it in the dos console, it just hung there and got no results
0 个评论
回答(1 个)
Ben11
2014-9-3
I think that's because, as trivial as it may sound, the disp command is used to display stuff in the Command Window, which is not available with compiled executable since it's the point to not have a command window.
What if you try using a msgbox for instance?
msgbox('Hello World!')
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!