while true
prompt for input
if the input was numeric and the input was scalar and the input is not complex valued and the input is in range
break
end
end
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!