Effacer les filtres
Effacer les filtres

calculating unknown points by pchip

2 vues (au cours des 30 derniers jours)
Sathyamoorthy R
Sathyamoorthy R le 2 Sep 2018
Commenté : Image Analyst le 2 Sep 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 commentaires
Sathyamoorthy R
Sathyamoorthy R le 2 Sep 2018
Modifié(e) : Image Analyst le 2 Sep 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 le 2 Sep 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

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Interpolation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by