How to compare the strings inside the gui

2 ビュー (過去 30 日間)
han han
han han 2019 年 9 月 23 日
回答済み: Walter Roberson 2019 年 9 月 23 日
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

採用された回答

Walter Roberson
Walter Roberson 2019 年 9 月 23 日
if strcmp(Student_Number, 'A01')
disp('the male student')
else
disp('the female student')
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by