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!