How to input two static text box independently?

2 ビュー (過去 30 日間)
Lee Marc Caya
Lee Marc Caya 2020 年 2 月 26 日
コメント済み: Geoff Hayes 2020 年 2 月 27 日
How to input two static text box independently?
  5 件のコメント
Lee Marc Caya
Lee Marc Caya 2020 年 2 月 27 日
lud = get(handles.input1,'value');
if lud==1
set(handles.input4,'String');
else
set(handles.input1,'String');
end
i try this logically and it didn't work. (i try to use toggle button for this)
Geoff Hayes
Geoff Hayes 2020 年 2 月 27 日
why
lud = get(handles.input1,'value');
? What are you expecting lud to be here? input1 is a static text control so how will the value (which isn't the string) relevant?
Also,
set(handles.input4,'String');
you aren't passing a string (array of characters) so nothing will happen here. What are you intending with this (and the other) line of code?
Is there a toggle button? Or is there something else that should indicate which line to use? What does input1 represent? What does input2 represent?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

タグ

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by