[EDIT: Wed May 25 04:59:27 UTC 2011 – Reformat – MKF]
I want a switch build a switch case statement as follows:
switch value case {10-100} disp('Method is within 100') case {101-500} disp('Method is within 500') otherwise disp('Unknown method.')end
my problem is how to set case statement to check within the range 10 to 100 or 101 to 500. Thanks in advance.
Best Answer