Adding a Foor Loop
5 ビュー (過去 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!