Placing the ouputs of while loop in an array
조회 수: 5 (최근 30일)
이전 댓글 표시
I don't necessarily have a code written, yet but I was just wondering how I could take the outputs(all iterations) of a while loop and return a vector with the outputs.
Thanks.
댓글 수: 0
답변 (1개)
Harshit
2012년 11월 19일
What is the problem. Start putting them as soon as they are generated.
if true
index = 0
a(index)=output
index = index+1
end
댓글 수: 2
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!