How can I use input() in a standalone Executable?
5 次查看(过去 30 天)
显示 更早的评论
Hi,
does anyone has experience with the input() function in a standalone executable under windows 7 64 bit. i make a example to show my problem
function test
if isdeployed
disp(isdeployed)
end
inp=input('EIngabe','s');
disp(inp)
end
If i compile this function with the deploytool and run it under windows the program stops because of the unknown variable "Eingabe". I think the command shell interprets the input as a new variable, that is unknown. Could anyone give me an advice, how to do user input while the exe is running?
thanks a lot.
Christof
0 个评论
回答(2 个)
Arthur
2012-10-12
I guess this is because input needs the command window. Loren explained how input behaves in deployed programs. http://blogs.mathworks.com/loren/2008/09/17/managing-non-deployable-functions-in-a-compiled-application/
It's probably best to use an inputdlg instead.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!