How to change interpolation results

1 view (last 30 days)
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

Accepted Answer

Andrei Bobrov
Andrei Bobrov on 27 Sep 2012
t= 200:1500;
l= pchip(l1,l2,t);
plot(l1,l2,'o',t,l,'-');
axis([200 1500 0 1])

More Answers (0)

Categories

Find more on Interpolation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!