greater than and less than
95 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Patrick
le 17 Fév 2011
Réponse apportée : LINDANI ZUNGU
le 13 Déc 2020
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
0 commentaires
Réponse acceptée
the cyclist
le 17 Fév 2011
if data(4) > 13 & data(4) < 15
blah blah
elseif data(4) > 2 & data(4) < 4
other blah blah
else
that other thing
end
Plus de réponses (2)
Paulo Silva
le 17 Fév 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
LINDANI ZUNGU
le 13 Déc 2020
how can i write age between 9-12 if age is between the two values ?
0 commentaires
Voir également
Catégories
En savoir plus sur Descriptive Statistics and Visualization dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!