I want a user of my app to be able to input a matrix/array

조회 수: 11 (최근 30일)
Katherine
Katherine 2023년 11월 28일
편집: Cris LaPierre 2023년 11월 28일
I have made a matlab app and accompanying function. I want the user to have the option to input an array. I don't think they can use the edit field numeric, is there another way to do this?
  댓글 수: 1
Mario Malic
Mario Malic 2023년 11월 28일
I would suggest to use the UITable component for this purpose. Add buttons to add/remove rows/columns.

댓글을 달려면 로그인하십시오.

답변 (1개)

Cris LaPierre
Cris LaPierre 2023년 11월 28일
편집: Cris LaPierre 2023년 11월 28일
They can use an edit field. They need to enter it all in one line, though. This approach is best for small arrays.
A = [1 2 3; 4 5 6; 7 8 9]
A = 3×3
1 2 3 4 5 6 7 8 9

카테고리

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