func3p2.asv
资源名称:数值分析课程设计.zip [点击查看]
上传用户:zhdd911129
上传日期:2007-05-11
资源大小:722k
文件大小:0k
源码类别:
matlab例程
开发平台:
Matlab
- yy=linspace(0,1000,121)
- xx=linspace(0,12000,121)
- for i=0:120
- y=1000*sub3p2(i*100)
- xx(i+1)=i*100
- yy(i+1)=y
- end
- plot(xx,yy,'-')
- %figure enclosed
- s=dsolve('D4y=0','y(0)=0','y(12000)=1000','Dy(0)=0','Dy(12000)=0')
- f=linspace
- for i=0:100:12000
- f=polyval(s,i)
- end
- plot(s,f,'-')