use a Loop to repeat an equation using the previous answer as the new variable.
Ältere Kommentare anzeigen
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 Kommentare
Adam Kevin Francis Baker
am 4 Mai 2019
Bearbeitet: Adam Kevin Francis Baker
am 4 Mai 2019
madhan ravi
am 4 Mai 2019
So anyhow you have wasted one of the answerers effort.
Adam Kevin Francis Baker
am 4 Mai 2019
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!