当前位置:网站首页>小程序: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
边栏推荐
- ansible学习笔记02
- 自动化测试如何创造业务价值?
- 复制延迟案例(3)-单调读
- 11 pinia use
- The normal form of the database (first normal form, second normal form, third normal form, BCNF normal form) "recommended collection"
- Deployment应用生命周期与Pod健康检查
- 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
- 7、常见面试口语提问问题汇总
- R语言ggstatsplot包ggbarstats函数可视化条形图、并添加假设检验结果(包含样本数、统计量、效应大小及其置信区间、显著性、组间两两比较、贝叶斯假设)、检验结果报告符合APA标准
- Linux check redis version (check mongodb version)
猜你喜欢

01 Encounter typescript, build environment

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

leetcode303 Weekly Match Replay

The use of button controls

mongo enters error

女性服务社群产品设计

What is the difference between BI software in the domestic market?

Ubantu专题5:设置静态ip地址

.NET 20周年专访 - 张善友:.NET 技术是如何赋能并改变世界的

AVH Deployment Practice (1) | Deploying the Flying Paddle Model on Arm Virtual Hardware
随机推荐
Oracle dynamically registers non-1521 ports
在资源管理类中提供对原始资源的访问——条款15
Use of radiobutton
6-22漏洞利用-postgresql数据库密码破解
长得很怪的箱图
Destruction order of thread_local variables
update data table update
Getting Started with TextBlock Control Basic Tools Usage, Get Started
Deployment应用生命周期与Pod健康检查
Tencent Cloud Deployment----DevOps
Gorm—Go语言数据库框架
[Meetup Preview] OpenMLDB+OneFlow: Link feature engineering to model training to accelerate machine learning model development
Linux查看redis版本(查看mongodb版本)
TRACE32——基于SNOOPer的变量记录
After Grafana is installed, the web opens and reports an error
Ubantu专题5:设置静态ip地址
TRACE32——C源码关联
更新数据表update
R language ggplot2 visualization: use the ggboxplot function of the ggpubr package to visualize the box plot, use the font function to customize the font size, color, style (bold, italic) of the legen
Female service community product design