Adding a Foor Loop
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
WhatIsMatlab-
am 20 Feb. 2016
Bearbeitet: WhatIsMatlab-
am 23 Feb. 2016
know I need to use a for loop but I cannot seem to get it to run.
0 Kommentare
Akzeptierte Antwort
Star Strider
am 20 Feb. 2016
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!