Borrar filtros
Borrar filtros

calculating unknown points by pchip

2 visualizaciones (últimos 30 días)
Sathyamoorthy R
Sathyamoorthy R el 2 de Sept. de 2018
Comentada: Image Analyst el 2 de Sept. de 2018
I have extracted points on the curve from 900nm to 1100nm using "GRAB IT". But I have got exact values up to 1020nm. How to find absorption coefficient at 1064nm. Experts said to use pchip. How can i get it?
  3 comentarios
Sathyamoorthy R
Sathyamoorthy R el 2 de Sept. de 2018
Editada: Image Analyst el 2 de Sept. de 2018
x = -5:5;
y = [1 1 1 1 0 0 1 2 2 2 2];
p = pchip(x,y);
If I run the above code, I am getting an error at the third line. Could you help me to resolve it?
Image Analyst
Image Analyst el 2 de Sept. de 2018
You forgot to post the error!!!
It works for me:
x = -5:5
y = [1 1 1 1 0 0 1 2 2 2 2]
p = pchip(x,y)
x =
-5 -4 -3 -2 -1 0 1 2 3 4 5
y =
1 1 1 1 0 0 1 2 2 2 2
p =
struct with fields:
form: 'pp'
breaks: [-5 -4 -3 -2 -1 0 1 2 3 4 5]
coefs: [10×4 double]
pieces: 10
order: 4
dim: 1

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by