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

matlab例程

开发平台:

Matlab

  1. yy=linspace(0,1000,121)
  2. xx=linspace(0,12000,121)
  3. for i=0:120
  4.   y=1000*sub3p2(i*100)
  5.   xx(i+1)=i*100
  6.   yy(i+1)=y
  7. end
  8. plot(xx,yy,'-')
  9. %figure enclosed
  10. s=dsolve('D4y=0','y(0)=0','y(12000)=1000','Dy(0)=0','Dy(12000)=0')
  11. f=linspace
  12. for i=0:100:12000
  13. f=polyval(s,i)
  14. end
  15. plot(s,f,'-')