Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
how to use the compare signal in m-file (>/<)
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Réponses (1)
Walter Roberson
le 25 Juil 2012
See http://www.mathworks.com/help/techdoc/ref/lt.html and http://www.mathworks.com/help/techdoc/ref/gt.html
An evaluated expression is true when the result is nonempty and contains all nonzero elements (logical or real numeric). Otherwise, the expression is false.
So when you have
if A < B
and A or B is a vector (or a matrix) then the "if" is only considered true if all A < B are true.
0 commentaires
Cette question est clôturée.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!