Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Create an array in a GUI

1 回表示 (過去 30 日間)
SETH GERSBACH
SETH GERSBACH 2022 年 5 月 25 日
閉鎖済み: Jan 2022 年 5 月 26 日
I want to create an array in a GUI to store data so I can export it, but can't find a way to store the data using app designer
i = 1
when button pushed
while true
App.Value1 = A + B;
App.Value2 = A + C;
store(i) = [App.Value1 App.Value2];
i = i + 1;
end
  3 件のコメント
SETH GERSBACH
SETH GERSBACH 2022 年 5 月 26 日
編集済み: Jan 2022 年 5 月 26 日
Sorry I was a bit vague, I was tired.
Text = fopen('document')
B = 2;
C = 5;
i = 1
when button pushed
for i > 20
A = read(Text)
App.Value1 = A + B;
App.Value2 = A + C;
store(i) = [App.Value1 App.Value2]; %stores data in array
i = i + 1;
end
export(store);
Jan
Jan 2022 年 5 月 26 日
I've formatted the code of your comment. Please do this by your own in the future to improve the readability.
You still did not ask a question. What is the purpose of "Text = fopen('document')" or "A = read(Text)"? For loops do not look like this in Matlab:
for i > 20
i = i + 1
end
So I still have no idea, what you want to achieve.

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by