For Loop Help with Output
Mostrar comentarios más antiguos
Unsure how to make Y, over range x, output in matrix not a singular answer.
h=.1;
y=1;
for x=0:h:10
Y=y+h.*x;
end
Respuestas (1)
David Hill
el 25 de En. de 2022
No for-loop needed.
h=.1;
y=1;
x=0:h:10;
Y=y+h*x;
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!