Adding a Foor Loop
조회 수: 4 (최근 30일)
이전 댓글 표시
know I need to use a for loop but I cannot seem to get it to run.
댓글 수: 0
채택된 답변
Star Strider
2016년 2월 20일
One problem was this line in your second while loop:
d(end+1,1:1) = n;
changing it to:
d(end+1,:) = n;
allows your code to run. I will let you decide if your code produces the correct results.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
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!