how to use this symbol in matlab?? ±
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
B.k Sumedha
le 2 Juin 2015
Commenté : James Tursa
le 2 Juin 2015
I have a if loop where i need to check the condition.The loop is something like this:
if(tht(1)==thf(1))
S='Orginal Note';
disp(S);
else
S = 'Fake Note';
disp(S);
end
Inside that if loop i want to place that ±. How can i do this?? For example like:
if(tht(10)==thf(10±5))
How it can be done??
0 commentaires
Réponse acceptée
James Tursa
le 2 Juin 2015
Did you mean a simple test for two different values?
if( tht(10)==thf(10-5) || tht(10)==thf(10+5) )
2 commentaires
James Tursa
le 2 Juin 2015
If you are asking if ± is an allowed operator in MATLAB, the answer is no.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Loops and Conditional Statements 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!