Input
1 回表示 (過去 30 日間)
古いコメントを表示
I want to manually assigned a value to T like this
T = input('Enter the value');
Tc = 256
Question if the enter value T > Tc the error comes up and stop to program to move forward. How can I do that.
0 件のコメント
採用された回答
Image Analyst
2012 年 3 月 11 日
T = input('Enter the value ')
Tc = 256
if T == Tc
msgbox('T = TC');
return; % or break or continue, depending on what you want...
else
msgbox('T not = Tc');
end
2 件のコメント
Image Analyst
2012 年 3 月 11 日
So take it out. You know you can adapt my demo code as you wish. If you don't want the msgbox, don't use it.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で MATLAB Compiler についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!