finding point on a function
조회 수: 5 (최근 30일)
이전 댓글 표시
I have a function P using polyfit. How can I find the corrdinate on P when x=a?
댓글 수: 0
답변 (2개)
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);
댓글 수: 0
KSSV
2020년 12월 9일
Read about interp1.
Let (x,y) be your data.
xi = a ;
yi = interp1(x,y,xi) ;
[xi yi]
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!