App Designer: enter data via table in the GUI

12 ビュー (過去 30 日間)
Rolf Kaufmann
Rolf Kaufmann 2020 年 12 月 16 日
コメント済み: Abbasali 2025 年 10 月 26 日 1:33
App Designer: How do you create an empty table in the App Designer GUI with n columns and m rows into which the user can enter measurement data? The table should then be transferred to a matrix in Matlab, which is used for subsequent calculations. I would like to avoid that the user has to first write the data into an Excel or text table which is then read with readtable.
Thanks for your help!

回答 (1 件)

Mario Malic
Mario Malic 2020 年 12 月 27 日
Hi Rolf,
Coming a bit late onto this one, but idea is to fill the Data property with zeros or some other numbers, and make sure uitable's property ColumnEditable is true. Set it programmatically or through the App Designer UI.
app.UITable.Data = zeros(2, 3);
  1 件のコメント
Abbasali
Abbasali 2025 年 10 月 26 日 1:33
Alternatively you can use cell function, for example app.UITable.Data = cell(n,1) where the n is defined before as to number of rows you need and 1 represents no. of columns.

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

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by