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?
1 件のコメント
per isakson
2016 年 6 月 18 日
編集済み: per isakson
2016 年 6 月 18 日
for jj = 1:60
dt = jj;
...
end
or I missed something
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!