plugging back a solution to obtain new soultion

2 次查看(过去 30 天)
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

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by