Borrar filtros
Borrar filtros

plugging back a solution to obtain new soultion

2 visualizaciones (últimos 30 días)
Maryal
Maryal el 29 de Nov. de 2017
Respondida: Star Strider el 29 de Nov. de 2017
Is there a way in I could write a code in which I use a function to obtain a solution then plug that solution back into the function to obtain a new solution

Respuesta aceptada

Star Strider
Star Strider el 29 de Nov. de 2017
Yes. Use a loop.
Example
x = 2;
for k1 = 1:5
y = x^2
x = y;
end

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by