Im trying to check a vector, that after the third integer the rest of the values should be equal to zero. If there is value that is not equal to zero, I should end the program. Im trying to do it without using loops.
I try doing this but it does not check the values. What can I Do?
x=[5 9 0 0 0 01]
error('Invalid values entered. Program Terminated');