load stockperf
whos
stock_values
vals_in_range=(stock_values>17&stock_values<18)
% Creates a logical array of zeroes and ones, where a one 
% indicates a value in the range.
num_vals=stock_values(vals_in_range)
% Index into stock_values using the logical array to get 
% list of numerical values.
