func3p1.asv
上传用户:zhdd911129
上传日期:2007-05-11
资源大小:722k
文件大小:0k
源码类别:

matlab例程

开发平台:

Matlab

  1. y1=[1,0]
  2. y2=[-1/6,0,1,0]
  3. y3=[1/120,0,-1/6,0,1,0]
  4. x=linspace(0,pi,200)
  5. xx=linspace(0,pi/2,100)
  6. yy0=sin(x)
  7. yy1=polyval(y1,xx)
  8. yy2=polyval(y2,xx)
  9. yy3=polyval(y3,xx)
  10. plot(x,yy0,'-',xx,yy1,'-','MarkerEdgeColor','g')%,yy2,xx,'-','MarkerEdgeColor','g',yy3,xx,'-','MarkerEdgeColor','y')