没有合适的资源?快使用搜索试试~ 我知道了~
MATLAB 使用 ode23 和 ode45 的示例.pdf
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 131 浏览量
2024-04-04
14:53:27
上传
评论
收藏 54KB PDF 举报
温馨提示
试读
4页
MATLAB 使用 ode23 和 ode45 的示例.pdf
资源推荐
资源详情
资源评论
MATLAB Examples on the use of ode23 and ode45:
Example 1: Use ode23 and ode45 to solve the initial value problem for a first order
differential equation:
]5,0[,1)0(,
2
'
2
∈=
−
−
= ty
y
ty
y
First create a
MatLab
function and name it
fun1.m
.
function f=fun1(t,y)
f=-t*y/sqrt(2-y^2);
Now use
MatLab
functions
ode23
and
ode45
to solve the initial value problem
numerically and then plot the numerical solutions y, respectively. In the
MatLab
window,
type in the following commands line by line.
>> [tv1 f1]=ode23('fun1',[0 5],1);
>> [tv2 f2]=ode45('fun1',[0 5],1);
>> plot(tv1,f1,'-.',tv2,f2,'--')
>> title('y''=-ty/sqrt(2-y^2), y(0)=1, t in [0, 5]')
>> grid
>> axis([0 5 0 1])
The numerical solutions f1 and f2 respectively generated by
ode23
and
ode45
are almost
the same for this example.
资源评论
百态老人
- 粉丝: 2103
- 资源: 2万+
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- ffmpeg-master-latest-win64-gpl-shared
- Ghostscript 10.03.1 for Windows (32 bit)
- 基于 python 实现对电信公司的数据做出分析,特征可视化,建立模型预测未知客户是否为要流失的客户
- Three.js可视化系统课程WebGL(2024年6月最新版49章)
- 微信小程序 MD5 AES SHA 加密解密
- 海光平台兼容性指南-国产化海光平台技术培训系列一
- AMQ28-SR4-M1-V1.0
- 基于STM32单片机的蓝牙小车.doc
- 《PHP网站开发实例教程》源代码.zip
- 2023年甘肃省职业院校技能大赛高职学生组网络系统管理赛项样卷.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功