Effacer les filtres
Effacer les filtres

Adding matrix in Matlab App Designer

33 vues (au cours des 30 derniers jours)
Mateusz Laskowski
Mateusz Laskowski le 9 Juin 2021
I need help with add a matrix as variable to code in App Designer. I tried to add matrix 6x6 in properties like in Matlab, but it doesn't work. Could you help me with that?
The very important thing is I need to "read" values from this matrix and display this in window of my app.

Réponse acceptée

ytzhak goussha
ytzhak goussha le 9 Juin 2021
Modifié(e) : ytzhak goussha le 9 Juin 2021
I'm not sure that I understood the question.
If the matrix is something constant, than you can add it like this
properties (Access = private)
mat = [1,2,3,4,5,6;...
...] % your matrix goes here
if you want it to be a something that you can input, you can add inputs you your app by clicking the "App Input Arguments" botton and then assign the input to the propertie or use it
And when you call the app, you add the input.
  1 commentaire
Mateusz Laskowski
Mateusz Laskowski le 10 Juin 2021
Yes, that's exactly what I need. Thanks a lot! :D

Connectez-vous pour commenter.

Plus de réponses (0)


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