For loop with previous result
Mostrar comentarios más antiguos
for t=1:n
a(t)=600+10^t
b(t)=600-a(t)
end
I want that b to always taking the previous result
so, b(1)=600-a(1)
b(2)=(600-a(1))-a(2)
b(3)=(600-a(1)-a(2))-a(3)
how can i change the t
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Parallel Computing 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!