Adding matrix in Matlab App Designer

33 ビュー (過去 30 日間)
Mateusz Laskowski
Mateusz Laskowski 2021 年 6 月 9 日
コメント済み: Mateusz Laskowski 2021 年 6 月 10 日
Hello,
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.

採用された回答

ytzhak goussha
ytzhak goussha 2021 年 6 月 9 日
編集済み: ytzhak goussha 2021 年 6 月 9 日
hey
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;...
7,8,9,10,11,12;...
13,14,15,16,17,18;...
...] % your matrix goes here
end
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.
my_app(mat_input)
  1 件のコメント
Mateusz Laskowski
Mateusz Laskowski 2021 年 6 月 10 日
Yes, that's exactly what I need. Thanks a lot! :D

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by