当前位置:网站首页>小程序:matlab解微分方程「建议收藏」
小程序:matlab解微分方程「建议收藏」
2022-07-31 15:37:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。function f = ball_trajectory(t, y);
g = 9.81; pi = 3.14159265; air_density = 1.20;
M = 57.5 * 0.001; D = 64.0 * 0.001; R = D * 0.5; A = pi * R * R;
Cd = 0.507; ratio_Cl_to_S = 0.58;
F = 0.5 * Cd * air_density * A / M; B = 0.5 * ratio_Cl_to_S * air_density * A * R / M;
V = sqrt(y(4) * y(4) + y(5) * y(5) + y(6) * y(6)); W = sqrt(y(7) * y(7) + y(8) * y(8) + y(9) * y(9));
f = zeros(9, 1);
f(1) = y(4); f(2) = y(5); f(3) = y(6);
f(4) = -1.0 * F * V * y(4) + B * (y(8) * y(6) – y(9) * y(5)); f(5) = -1.0 * F * V * y(5) + B * (y(9) * y(4) – y(7) * y(6)); f(6) = -1.0 * F * V * y(6) + B * (y(7) * y(5) – y(8) * y(4)) – g;
%f(7) = 0; %f(8) = 0; %f(9) = 0;
%f(7) = -10.0 * F * V * y(7); %f(8) = -10.0 * F * V * y(8); %f(9) = -10.0 * F * V * y(9);
f(7) = -0.2 * y(7); % 0.2 f(8) = -0.2 * y(8); % 0.2 f(9) = -0.2 * y(9); % 0.2
%f(7) = -0.2; %f(8) = -0.2;
%f(9) = -0.2;
%f(7) = 0; %f(8) = 0; %f(9) = 0;
%f(7) = -10.0 * F * V * y(7); %f(8) = -10.0 * F * V * y(8); %f(9) = -10.0 * F * V * y(9);
% dw/dt = 2.9 * 10^(-4) / R * V * w
f(7) = -2.9 * 10^(-4) * V * y(7); f(8) = -2.9 * 10^(-4) * V * y(8); f(9) = -2.9 * 10^(-4) * V * y(9);
%f(7) = -0.2; %f(8) = -0.2; %f(9) = -0.2;
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/127975.html原文链接:https://javaforall.cn
边栏推荐
- Synchronized和volatile 面试简单汇总
- Vb how to connect mysql_vb how to connect to the database collection "advice"
- Kubernetes principle analysis and practical application manual, too complete
- 国内市场上的BI软件,到底有啥区别
- 7、常见面试口语提问问题汇总
- 基于ABP实现DDD
- Precautions and solutions when SIGABRT error is reported
- ML.NET related resources
- 外媒所言非虚,苹果降价或许是真的在清库存
- SIGABRT 报错时的注意事项和解决方法
猜你喜欢

Grafana安装后web打开报错

DBeaver连接MySQL 8.x时Public Key Retrieval is not allowed 错误解决

Ubuntu Topic 5: Setting a Static IP Address

TextBlock控件入门基础工具使用用法,取上法入门

Efficient use of RecyclerView Section 1

How useful is four-quadrant time management?
![[CUDA study notes] First acquaintance with CUDA](/img/a2/f322ebe9dc483028f68882ee2c866b.png)
[CUDA study notes] First acquaintance with CUDA

Word表格转到Excel中

使用 GraphiQL 可视化 GraphQL 架构

Female service community product design
随机推荐
BGP综合实验(建立对等体、路由反射器、联邦、路由宣告及聚合)
7. Summary of common interview questions
自动化测试如何创造业务价值?
TRACE32——常用操作
WPF project - basic usage of controls entry, you must know XAML
工程流体力学复习
Codeforces Round #796 (Div. 2) (A-D)
工程水文学复习资料
"Autumn Recruitment Series" MySQL Interview Core 25 Questions (with answers)
Handling write conflicts under multi-master replication (4) - multi-master replication topology
Word表格转到Excel中
实现防抖与节流函数
org.apache.jasperException(could not initialize class org)
Emmet 语法
R language test whether the sample conforms to normality (test whether the sample comes from a normally distributed population): shapiro.test function tests whether the sample conforms to the normal d
.NET 20周年专访 - 张善友:.NET 技术是如何赋能并改变世界的
基于ABP实现DDD
工程力学复习资料
【CUDA学习笔记】初识CUDA
Excel快速对齐表格的中姓名(两个字姓名和三个字姓名对齐)