Read cell arrays from Pop up menu in GUI and Plot

2 ビュー (過去 30 日間)
Teju
Teju 2019 年 9 月 5 日
回答済み: Teju 2019 年 9 月 12 日
gui1.png
I would like to read the data from Pop up menu list and plot according to the Cell array in Table as shown in screen shot.
I can able to get the data(inputsignalNames) in Pop up menu with Cell array but not able to plot the Input signal Data with respect to Input signal name selected from Pop up menu.
Please suggest ? please share a link for example if already available
  1 件のコメント
Rik
Rik 2019 年 9 月 5 日
Don't use evalin to share variables between functions.
You should be able to use the Value property to see which variable is selected. Then you can use indexing to retrieve the data:
val=get(handles.popupmenu1,'Value');
data=Table{2,val};

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

採用された回答

Teju
Teju 2019 年 9 月 12 日
Thanks for the feedback

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by