So I am trying to get a switch loop to display values of x=rand(1,10) when the values are greater than and smaller than 0.6?
Been trying with this however it keeps either telling me that my x value needs to be a scalar or character variable or just the regular unexpected error message.
disp 'Large value in x found'
disp 'Small value in x found'
I know something else would be probably more pragmatic here but it's homwork so I do not make the rules...
Thanks in advance!