필터 지우기
필터 지우기

How to change interpolation results

조회 수: 1 (최근 30일)
Emmanuelle
Emmanuelle 2012년 9월 27일
Hi! I have a question. I've done some interpolation: t= 200:.01:1500; l= pchip(l1,l2,t); plot(l1,l2,'o',t,l,'-'); axis([200 1500 0 1])
But the result of the x vector is not one by one numbers (like 251, 252...). It's like this:
251
251,010000000000
251,020000000000
251,030000000000
251,040000000000
251,050000000000
251,060000000000
251,070000000000
251,080000000000
251,090000000000
251,100000000000
251,110000000000
251,120000000000
251,130000000000
251,140000000000
251,150000000000
251,160000000000
251,170000000000
251,180000000000
251,190000000000
251,200000000000
251,210000000000
251,220000000000
How can I change this? Is that possible?
Thanks a lot in advance

채택된 답변

Andrei Bobrov
Andrei Bobrov 2012년 9월 27일
t= 200:1500;
l= pchip(l1,l2,t);
plot(l1,l2,'o',t,l,'-');
axis([200 1500 0 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