当前位置:网站首页>Matlab/Simulink求解微分方程样例分享
Matlab/Simulink求解微分方程样例分享
2022-07-27 09:57:00 【用户9925864】
最近几天关注的读者数量激增,不知道是不是都是看了之前的一篇文章--基于Matlab/Simulink的1/4车辆动力学模型,如果大家是对动力学相关、车辆相关或者simulink求解相关,可以后台留言交流,
这次分享是前两天有个同学咨询了一个关于simulink求解微分方程题目,故借着这个题目和读者分享一下Matlab/Simulink求解微分方程
题干如图,这个题目有2个特殊的地方
1、不像常规的微分方程,给出x3的微分方程
2、x1+x2+x3=8在初始值的时候不成立,
假设1:那么x1+x2+x3=8在初始的时候必须成立,那么就是题目给的初始值有问题,也就是要改成x1=x2=0,x3=8
假设2:x1=x2=x3=0初始值必须成立,那么x1+x2+x3=8在初始的时候就不考虑
我们沿着这两种假设分别做下求解
首先说对应x1和x2的微分求解,先分别把微分部分写出来,直接微分得到x1和x2
第二步,分别根据x1和x2的微分方程求解对应的1/s模块前的数,红框的8应该修改为10,感谢帮忙指正
第三步,分别给x1 x2和x3对应的初始值
在两种不同的假设中
假设1的情况下结果如下,
假设2的情况下,由于x3必须给初始值0,那么就需要额外添加一个memory模块,给x3初值
结果如下
在仿真时间增加的情况下,又会出现不收敛系统报错的情况
故结合仿真结果,偏向于假设1成立,题目给的初始值有问题,也就是要改成x1=x2=0,x3=8
边栏推荐
- Gbase 8A MPP cluster capacity expansion practice
- Matlab-创建 MATLAB的logo
- 学习Typescript(一)
- 女粉想要找男朋友,竟是为了...
- 活体检测综述
- TFlite 的简单使用
- 直播倒计时 3 天|SOFAChannel#29 基于 P2P 的文件和镜像加速系统 Dragonfly
- Mathematical reasoning: five couples get together and shake hands when they meet
- 备战金九银十Android面试准备(含面试全流程,面试准备工作面试题和资料等)
- NFT system development - Tutorial
猜你喜欢

Switch port mirroring Configuration Guide

面试京东 T5,被按在地上摩擦,鬼知道我经历了什么?

线代004

Shell read read console input, use of read
![Shell中的文本处理工具、cut [选项参数] filename 说明:默认分隔符是制表符、awk [选项参数] ‘/pattern1/{action1}filename 、awk 的内置变量](/img/ed/941276a15d1c4ab67d397fb3286022.png)
Shell中的文本处理工具、cut [选项参数] filename 说明:默认分隔符是制表符、awk [选项参数] ‘/pattern1/{action1}filename 、awk 的内置变量

卸载CUDA11.1

Food safety | is sugar free really sugar free? These truths need to be known

Food safety | are you still eating fermented rice noodles? Be careful these foods are poisonous!

Explain knative cloud function framework in simple terms!

Anaconda安装(非常详细)
随机推荐
Snowflake vs. Databricks谁更胜一筹?2022年最新战报
About getter/setter methods
Cannot start after installing MySQL 5.7.27 in CentOS 7? (Language bash)
Discussion on a problem
Pyautogui实现自动化办公-RPA小case
Shell变量、系统预定义变量$HOME、$PWD、$SHELL、$USER、自定义变量、特殊变量$n、$#、$*、[email protected]、$?、env看所有的全局变量值、set看所有变量
Why is redis so fast? Redis threading model and redis multithreading
Decision tree principle and case application - Titanic survival prediction
历时一年,论文终于被国际顶会接收了
Introduction to Matlab real time editor
Robotframework+eclispe environment installation
WGAN、WGAN-GP、BigGAN
Interview Essentials: shrimp skin server 15 consecutive questions
3D restoration paper: shape painting using 3D generative advantageous networks and recurrent revolutionary networks
NVIDIA geforce experience login error: the verifier failed to load. Please check your browser settings, such as the advertisement interceptor (solution)
hdu5289(Assignment)
二叉树习题总结
Anaconda安装(非常详细)
视觉SLAM十四讲笔记(一):第一讲+第二讲
Redis 为什么这么快?Redis 的线程模型与 Redis 多线程