Create table where user can input data in App Designer

17 ビュー (過去 30 日間)
Ebenezer Duah
Ebenezer Duah 2020 年 4 月 10 日
コメント済み: Ameer Hamza 2020 年 4 月 10 日
I am a civil engineering student at ASU, in Arizona. I'm working on a code that predict viscoelastic response to some defined excitations. Now I want to Design an App by using App Designer in Matlab.
The app will require user to enter 3 parameters for each element used in the response model. I've been trying to get that from an editable table of size (n,3), where n is the 'number of elements', which is also a user input.
Editable table might not be the right tool but i only need a matrix of (n,3) from user input. Below is what I did but the zeros are irreplaceable.
% Callback function: LoadButton, UITable
function UITableCellEdit(app, event)
n = app.NumberofElementsEditField.Value;
dt = zeros(n,3,"double");
app.UITable.Data= dt;
end

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 4 月 10 日
You need to tell the App designer that you want which columns to be editable.
  6 件のコメント
Ebenezer Duah
Ebenezer Duah 2020 年 4 月 10 日
Thanks. That worked
Ameer Hamza
Ameer Hamza 2020 年 4 月 10 日
Glad to be of help.

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

その他の回答 (0 件)

カテゴリ

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