필터 지우기
필터 지우기

finding specific values in a function

조회 수: 2 (최근 30일)
Sean Smith
Sean Smith 2011년 9월 16일
So i have a function f(x) and it is basically a curve. I am trying to find the point on in then the curve is at its minimum. To find the y coordinate i just used min(f(x)). My question is how do I find the x value that corresponds to that. x is a vector of about 100 terms if that makes a difference. The function is kind of long and complicated or else I would just solve for x. Is there a command that will give me that matching x value to the y minimum? Thank You.

채택된 답변

Walter Roberson
Walter Roberson 2011년 9월 16일
[y, yidx] = min(f(x));
Then x(yidx) is the x that evaluates to the minimum.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by