- #1
Hikarikaze
- 4
- 0
Hi there, I have a question about generating an error message in MATLAB..
say, A = input('Value of A = ')
if A > 5
disp ('Value of A is larger than 5')
else
end
So, question here is... How can I make the program stop once it finds out A is larger than 5 and returns to the previous command where it asks for the value of A so we can input a new value of A?
say, A = input('Value of A = ')
if A > 5
disp ('Value of A is larger than 5')
else
end
So, question here is... How can I make the program stop once it finds out A is larger than 5 and returns to the previous command where it asks for the value of A so we can input a new value of A?