use a Loop to repeat an equation using the previous answer as the new variable.
Mostrar comentarios más antiguos
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 comentarios
Stephen23
el 4 de Mayo de 2019
Adam Kevin Francis Baker
el 4 de Mayo de 2019
Editada: Adam Kevin Francis Baker
el 4 de Mayo de 2019
madhan ravi
el 4 de Mayo de 2019
So anyhow you have wasted one of the answerers effort.
Adam Kevin Francis Baker
el 4 de Mayo de 2019
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!