How to compare the strings inside the gui

조회 수: 1 (최근 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 CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by