필터 지우기
필터 지우기

finding point on a function

조회 수: 4 (최근 30일)
Jiung Shin
Jiung Shin 2020년 12월 9일
답변: Ameer Hamza 2020년 12월 9일
I have a function P using polyfit. How can I find the corrdinate on P when x=a?

답변 (2개)

Ameer Hamza
Ameer Hamza 2020년 12월 9일
You can use polyval()
xv; % x data-points
yv; % y data-points
p = polyfit(xv, yv, 3);
x = a;
y = polyval(p, x);

KSSV
KSSV 2020년 12월 9일
Read about interp1.
Let (x,y) be your data.
xi = a ;
yi = interp1(x,y,xi) ;
[xi yi]

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by