Assign multiple results to the same variable
이전 댓글 표시
I'm doing a code that uses while, and inside that while is a variable whose value gets changed every instance, I want to store all those values on a single variable to table it later, how can I do that?
댓글 수: 3
Mathieu NOE
2023년 8월 31일
indexing the varoable is the solution
k = 0;
while ....
k = k+1;
data(k) = ...
end
Chesus
2023년 8월 31일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!