use a Loop to repeat an equation using the previous answer as the new variable.
Mostra commenti meno recenti
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 Commenti
Adam Kevin Francis Baker
il 4 Mag 2019
Modificato: Adam Kevin Francis Baker
il 4 Mag 2019
madhan ravi
il 4 Mag 2019
So anyhow you have wasted one of the answerers effort.
Adam Kevin Francis Baker
il 4 Mag 2019
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!