二维插值

二维图形绘制

t=0:pi/20:2*pi

plot(t,t.*cos(t),'-.r*')

hold on

plot(exp(t/100).*sin(t-pi/2),'--mo')

plot(sin(t-pi),':bs')
hold off

 

一维插值

x=0:10;
y=x.*sin(x);
xx=0:.25:10;
yy=interp1(x,y,xx);
plot(x,y,'kd',xx,yy);

 

posted @ 2015-11-14 16:15  文刀三石  阅读(703)  评论(0编辑  收藏  举报