How do I limit the range of numbers that can be entered into...
try y = x{1};% cell to string z = str2num(strtok(y));% string to number catch z = str2num(strtok(x));% string to number end lower_limit = 1; upper_limit = 100; %Output equals value of z if z falls between the bounds set by lower_limit ...