How to compare the strings inside the gui
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
han han
il 23 Set 2019
Risposto: Walter Roberson
il 23 Set 2019
How to compare the strings inside the gui llike this
Ex. If the student number is A01, the male student is displayed, otherwise the female student is displayed.
I have read the syntax of strcmp, but I don't know how to use it.
please help me
0 Commenti
Risposta accettata
Walter Roberson
il 23 Set 2019
if strcmp(Student_Number, 'A01')
disp('the male student')
else
disp('the female student')
end
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!