MATLAB: Greater than and less than

between valuesgreater thanless than

I cant find format for a command that finds all values between 2 different parameters, it is something like this:
data = sscanf (tempstng, '%d');
If data(4) > 13 & < 15;
Do sequence;
If data(4) > 2 & < 4;
Do Something else;
else sscanf (tempstng, '%d');
end;
Any ideas? Patrick

Best Answer

if data(4) > 13 & data(4) < 15
blah blah
elseif data(4) > 2 & data(4) < 4
other blah blah
else
that other thing
end