Filter löschen
Filter löschen

calculating unknown points by pchip

2 Ansichten (letzte 30 Tage)
Sathyamoorthy R
Sathyamoorthy R am 2 Sep. 2018
Kommentiert: Image Analyst am 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 Kommentare
Sathyamoorthy R
Sathyamoorthy R am 2 Sep. 2018
Bearbeitet: Image Analyst am 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 am 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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Interpolation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by