HI , I WANT TO USE "IF" AND ELSE CONDITIONS IN MATLAB USERDEFINED FUNCTION ?PLZ HELP ME
Afficher commentaires plus anciens
TELL ME A GOOD BOOK PLZ
Réponses (2)
Wayne King
le 7 Avr 2012
Have you just read the MATLAB getting started guide, or the help for if? I think you don't need a book on that alone.
x = 3;
if (x<3)
disp('Do this');
elseif (x>3)
disp('Do this');
else
disp('x is equal to 3.');
end
Catégories
En savoir plus sur National Instruments Frame Grabbers dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!