Filter löschen
Filter löschen

plugging back a solution to obtain new soultion

2 Ansichten (letzte 30 Tage)
Maryal
Maryal am 29 Nov. 2017
Beantwortet: Star Strider am 29 Nov. 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

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by