I allow the user to input their own vector. Then my script shows the vector as a decimal number but with the integers as zeros. I now want my if statement showing if the vector has one or more numbers that are not integers as an incorrect input. I know how to get the script to display "incorrect input" but how would I get the part showing if the vector has one or more numbers that are not integers?
MATLAB: How to do this with a while loop script
while loop
Related Question
- How would I ask a user to input a vector without loops
- How to bypass Error (index must be a positive integer or logical)
- Using “WHILE” to compare input value with positive integer
- How to write a sript for while loop and for loop. please include code
- Vector isn’t storing the values passed to it
- Let users enter anything, save integers, give warning otherwise
Best Answer