Input
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Image Analyst
le 11 Mar 2012
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 commentaires
Image Analyst
le 11 Mar 2012
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.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur MATLAB Compiler dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!