필터 지우기
필터 지우기

How do I apply the Method of Steepest Descent in Matlab?

조회 수: 3 (최근 30일)
Ferris
Ferris 2015년 3월 12일
댓글: Ferris 2015년 3월 12일
Hello all!
I'm relatively new to MATLAB and I was wondering if I can get some help with my homework, I would really appreciate it. Given the function f(y)=(y2-x)^2 I calculated the derivative to be f'(y)= 2(y^2-x)(2y), using the chain rule The question is: "write a script that uses a while loop within a while loop to apply the method of steepest descent. The outer while loop must contain an input statement to receive a value of x, and if the input is not greater than zero, then break out of this loop, which terminates the program. If input x is greater than zero, then the inner while loop must apply the method of steepest descent to find y." I'm not asking for a straight up answer, I'm just really confused at this point and its really overwhelming to not know how to do this. I would appreciate any help i'm given. Thanks in advance. Ferris

답변 (1개)

Sara Hafeez
Sara Hafeez 2015년 3월 12일
  댓글 수: 1
Ferris
Ferris 2015년 3월 12일
Thank you for your response. But I don't understand it.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by