Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Get input from user using Popup button

1 回表示 (過去 30 日間)
Zeeshan Abbas
Zeeshan Abbas 2019 年 7 月 27 日
閉鎖済み: Zeeshan Abbas 2019 年 7 月 27 日
I have a popup button having multiple options. One of them is to get input message from user (screenshot attached). I want to click this button and enter message in below given box. Then I need to call this message in another function.
popup.JPG
I have written this code to get the message from that box:
message=get(handles.edit3,'string');
handles.message=message;
and this line in the function to call this message where I need it.
message=handles.message;
but it seems that the message remains always empty and not getting that value.
Please, help how can I solve it?
  1 件のコメント
Zeeshan Abbas
Zeeshan Abbas 2019 年 7 月 27 日
The issue was that the message is in the form of cell array so I converted into char first and it worked.
So, am closing this question.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by