Azzera filtri
Azzera filtri

calculating unknown points by pchip

2 visualizzazioni (ultimi 30 giorni)
Sathyamoorthy R
Sathyamoorthy R il 2 Set 2018
Commentato: Image Analyst il 2 Set 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 Commenti
Sathyamoorthy R
Sathyamoorthy R il 2 Set 2018
Modificato: Image Analyst il 2 Set 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 il 2 Set 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

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Interpolation in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by