How to change interpolation results

1 次查看(过去 30 天)
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