필터 지우기
필터 지우기

calculating unknown points by pchip

조회 수: 2 (최근 30일)
Sathyamoorthy R
Sathyamoorthy R 2018년 9월 2일
댓글: Image Analyst 2018년 9월 2일
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
Sathyamoorthy R
Sathyamoorthy R 2018년 9월 2일
편집: Image Analyst 2018년 9월 2일
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 2018년 9월 2일
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

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by