use a Loop to repeat an equation using the previous answer as the new variable.
古いコメントを表示
I want to write a loop to do the below all the way up to p340....I do not want to change the name of the variable each time but instead would like all variables in one array. I have been searching and trying to figure this out for hours. I've written so many different forms of a for loop I don't know what to include here.
xt = 100:440
p1 = 99977
p2 = p1./(exp((50)./(29.3.*((xt)))))
p3 = p2./(exp((50)./(29.3.*((xt)))))
p4 = p3./(exp((50)./(29.3.*((xt)))))
....etc
4 件のコメント
Adam Kevin Francis Baker
2019 年 5 月 4 日
編集済み: Adam Kevin Francis Baker
2019 年 5 月 4 日
madhan ravi
2019 年 5 月 4 日
So anyhow you have wasted one of the answerers effort.
Adam Kevin Francis Baker
2019 年 5 月 4 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および 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!