How to enter Matrix in App designer matlab

43 vues (au cours des 30 derniers jours)
samiullah aziz
samiullah aziz le 14 Fév 2021
Modifié(e) : Mario Malic le 21 Fév 2021
I am trying to enter matrix and work with matrix operation in app desginer matlab as it works in normal matlab program
I want to enter 6x6 matrix and multiply it with another matrix in app designer
I need help
thanks

Réponses (1)

Mario Malic
Mario Malic le 14 Fév 2021
Modifié(e) : Mario Malic le 21 Fév 2021
Hello,
There's not a really an easy/convenient way to input the matrix. You can use the EditField Text component and use str2num function on the input to get a numeric array.
EDIT: I made a demo app that uses UITable component to act as numeric array which you can adapt in your example, here is the answer.
  4 commentaires
samiullah aziz
samiullah aziz le 14 Fév 2021
Thanks for answer If I define two matrix in this way can I sum them up together?
Mario Malic
Mario Malic le 14 Fév 2021
You'll need to figure out how do you want to do it first. Do you want to save these matrices into properties so you can calculate them when you press the button, or do you want to do it in a single callback? The answer depends on you, before continuing more, please do few examples in App Designer and you'll understand how you should do task.

Connectez-vous pour commenter.

Catégories

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

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by