greater than and less than
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (2)
Paulo Silva
am 17 Feb. 2011
data = sscanf (tempstng, '%d');
if ((data(4) > 13) & (data(4)< 15))
disp('if')
elseif ((data(4) > 2) & (data(4)< 4))
disp('elseif')
else
disp('else')
sscanf (tempstng, '%d');
end
1 Kommentar
Patrick
am 17 Feb. 2011
LINDANI ZUNGU
am 13 Dez. 2020
0 Stimmen
how can i write age between 9-12 if age is between the two values ?
Kategorien
Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!