Adding a Foor Loop
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
WhatIsMatlab-
el 20 de Feb. de 2016
Editada: WhatIsMatlab-
el 23 de Feb. de 2016
know I need to use a for loop but I cannot seem to get it to run.
0 comentarios
Respuesta aceptada
Star Strider
el 20 de Feb. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!