MATLAB: Input

input

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.

Best Answer

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