Iteration of two equations with two unknowns
Mostrar comentarios más antiguos
Hello, I have these two equations: where R0 and V0 are the known initial values with the range of t given.
V1=(A/R0)*(t1-t0) + V0
and
R1=V0*(t1-t0) + R0.
The second iteration will be in the form of
V2=(A/R1)*(t2-t1) + V1
and
R2=V1*(t2-t1) + R1 etc...
My challenge is that I want the iteration to terminate at a particular value R which I don't know how to incorporate into a 'for loop' code. Kindly assist.
Respuesta aceptada
Más respuestas (3)
Shozeal
el 4 de Mayo de 2018
0 votos
Shozeal
el 5 de Mayo de 2018
0 votos
1 comentario
Walter Roberson
el 5 de Mayo de 2018
The code I posted should do that.
The V values become close to constant in just a few iterations, so the R ends up looking indistinguishable from linear.
It looks V is an acceleration of some sort and R is a velocity.
Shozeal
el 5 de Mayo de 2018
0 votos
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!