Finding when spline interpolated data is equal to a number

 Respuesta aceptada

Stephen23
Stephen23 el 12 de Abr. de 2022
Editada: Stephen23 el 12 de Abr. de 2022
X = [1,2,3];
Y = [1,2,4];
Yq = 3;
pp = spline(X,Y);
fh = @(xq)ppval(pp,xq)-Yq;
Xq = fzero(fh,[1,4])
Xq = 2.5616
plot(X,Y,'+',Xq,Yq,'*')

Más respuestas (0)

Categorías

Productos

Preguntada:

el 12 de Abr. de 2022

Editada:

el 12 de Abr. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by