Retrieve data from uitable when user enters data

Hello guys! I try to create a uitable for the user to insert values. When the user closes the window, the program must take the inputs and create a matrix. I wrote that: f=figure(1); t=uitable(f); t.ColumnEditable=true; d={'ACCP',0;'AIR',0;'AIRP',0;'ATOS',0}; t.Data = d; waitfor(gcf); datamatrix=get(t,'Data'); and I get this error: Error using matlab.ui.control.Table/get Invalid or deleted object. Please help me! Thank you

 採用された回答

M
M 2018 年 8 月 21 日

1 投票

You should handle the deletion of the table properly as explained here:
With this example you can retrieve the data when the figure is closed, you can adapt it to retrieve the data whenever the user enter a new value.

1 件のコメント

Kyriaki Mylonas
Kyriaki Mylonas 2018 年 8 月 21 日
I'll check it out! Thank you very much :D

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

質問済み:

2018 年 8 月 21 日

コメント済み:

2018 年 8 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by