Create an array in a GUI
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
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
Jan
2022년 5월 25일
The question is not clear. This is an infinite loop, which creates a growing array called "store" containg the same values repeatedly. What is A, B and C? Where do you want to "store" the values? What is the purpose of the code? Why do you want to use a loop?
SETH GERSBACH
2022년 5월 26일
편집: Jan
2022년 5월 26일
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!