How do you update a variable in a timestep loop?

1 次查看(过去 30 天)
I have many equations in a for loop that will need to be updated with each iteration of 1 through 60 with dt being 1 (so 1,2,3,4,5...60). The variable in each equation needing to be updated is dt. First time through it will be 1, second time through it will be 2, so on and so forth. How can I do this?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by