当前位置:网站首页>小程序: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
边栏推荐
- ASP.NET Core generates continuous Guid
- Grafana安装后web打开报错
- tooltips使用教程(鼠标悬停时显示提示)
- 微信聊天记录中搜索红包
- 国内市场上的BI软件,到底有啥区别
- Replication Latency Case (3) - Monotonic Read
- 腾讯云部署----DevOps
- How does automated testing create business value?
- 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
- 多主复制下处理写冲突(4)-多主复制拓扑
猜你喜欢
随机推荐
AVH部署实践 (一) | 在Arm虚拟硬件上部署飞桨模型
vb中如何连接mysql_vb怎么连接数据库「建议收藏」
button控件的使用
[MySQL] Mysql paradigm and the role of foreign keys
C language "the third is" upgrade (mode selection + AI chess)
[CUDA study notes] First acquaintance with CUDA
The use of border controls
Oracle dynamically registers non-1521 ports
定时器的类型
基于ABP实现DDD
Kubernetes common commands
Kubernetes原理剖析与实战应用手册,太全了
R language moves time series data forward or backward (custom lag or lead period): use the lag function in the dplyr package to move the time series data forward by one day (set the parameter n to a p
复制延迟案例(3)-单调读
Linux check redis version (check mongodb version)
.NET 20周年专访 - 张善友:.NET 技术是如何赋能并改变世界的
leetcode303 Weekly Match Replay
C语言”三子棋“升级版(模式选择+AI下棋)
7. Summary of common interview questions
ansible学习笔记02








