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 CenterFile Exchange에서 Develop 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