How to compare the strings inside the gui
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Walter Roberson
2019-9-23
if strcmp(Student_Number, 'A01')
disp('the male student')
else
disp('the female student')
end
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!