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

11 vues (au cours des 30 derniers jours)
Katherine
Katherine le 28 Nov 2023
Modifié(e) : Cris LaPierre le 28 Nov 2023
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 commentaire
Mario Malic
Mario Malic le 28 Nov 2023
I would suggest to use the UITable component for this purpose. Add buttons to add/remove rows/columns.

Connectez-vous pour commenter.

Réponses (1)

Cris LaPierre
Cris LaPierre le 28 Nov 2023
Modifié(e) : Cris LaPierre le 28 Nov 2023
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

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by