How to change gui string?

조회 수: 2 (최근 30일)
faran
faran 2018년 6월 13일
댓글: faran 2018년 6월 13일
Hi, IS it possible to change the string of checkbox or button in guide? I want the user to have this option to change the string anytime they like. Like that I put the string for a checkbox as 'case1' and If user want to change it do it by pressing a button to change it to for example to 'finalcase'.
I know that code "get(handles.checkbox1,'String')" will give the result of 'case1'. Is there anycode like get, to change the string of checkbox1?

채택된 답변

Walter Roberson
Walter Roberson 2018년 6월 13일
newlabel = get(handles.editbox1, 'String');
set(handles.checkbox1, 'String', newlabel);
  댓글 수: 1
faran
faran 2018년 6월 13일
Thank you so much.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by