finding point on a function
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a function P using polyfit. How can I find the corrdinate on P when x=a?
0 Kommentare
Antworten (2)
Ameer Hamza
am 9 Dez. 2020
You can use polyval()
xv; % x data-points
yv; % y data-points
p = polyfit(xv, yv, 3);
x = a;
y = polyval(p, x);
0 Kommentare
KSSV
am 9 Dez. 2020
Read about interp1.
Let (x,y) be your data.
xi = a ;
yi = interp1(x,y,xi) ;
[xi yi]
0 Kommentare
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!