Consider I have
a = input(value = );
how can I prevent user from enter i and j as the input values. I would like to have a code some thing like tat
if a == any value involves i and j
then break or terminate
and prompt the function a = input(value = ) again.
between I have tired something like this, but it doesn’t work (the error is still coming out and it unable to prompt the second defined input a = input(‘enter again’)), can anybody explain to me where’s the mistake I have done.
if ~isnan(x) || ~isnumeric
a = input('enter again');
else
continue
end
I will really appreciate all the help.
try this