필터 지우기
필터 지우기

plugging back a solution to obtain new soultion

조회 수: 2 (최근 30일)
Maryal
Maryal 2017년 11월 29일
답변: Star Strider 2017년 11월 29일
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