当前位置:网站首页>[mathematical modeling] ship three degree of freedom MMG model based on MATLAB [including Matlab source code 1925]
[mathematical modeling] ship three degree of freedom MMG model based on MATLAB [including Matlab source code 1925]
2022-07-03 18:57:00 【Poseidon light】
One 、 How to get the code
How to get the code 1:
The complete code has been uploaded to my resources :【 mathematical modeling 】 be based on matlab Ship three degrees of freedom MMG Model 【 contain Matlab Source code 1925 period 】
How to get the code 2:
By subscribing to Ziji Shenguang blog Paid column , With proof of payment , Private Blogger , This code is available .
remarks :
Subscribe to Ziji Shenguang blog Paid column , Free access to 1 Copy code ( The period of validity From the Subscription Date , Valid for three days );
Two 、 Partial source code
function main
M = 20000000; % twenty million X twenty million matrix
f1 = @()sinfun1(M);
f2 = @()sinfun2(M);
f3 = @()sinfun3(M);
f4 = @()sinfun4(M);
sprintf('f1- No pre allocation for Cycle time :%f',timeit(f1))
sprintf('f2- With preallocation for Cycle time :%f',timeit(f2))
sprintf('f1/f2 Multiple :%f',timeit(f1)/timeit(f2))
sprintf('f3- No pre allocated vector time :%f',timeit(f3))
sprintf('f4- Time with preallocated vector :%f',timeit(f4))
sprintf('f2/f4 Multiple :%f',timeit(f2)/timeit(f4))
sprintf('f1/f4 Multiple :%f',timeit(f1)/timeit(f4))
function y = sinfun1(M)
x = 0:M - 1;
for k = 1:numel(x)
y(k) = sin(x(k) / (100*pi));
end
function y = sinfun2(M)
x = 0:M-1;
y = zeros(1, numel(x));
for k = 1:numel(x)
y(k) = sin(x(k) / (100*pi));
end
3、 ... and 、 Running results

Four 、matlab Edition and references
1 matlab edition
2014a
2 reference
[1] Li Xin .MATLAB mathematical modeling [M]. tsinghua university press .2017
[2] Wang Jian , Zhao Guosheng .MATLAB Mathematical modeling and simulation [M]. tsinghua university press .2016
[3] Yu Shengwei .MATLAB Mathematical modeling classic case practice [M]. tsinghua university press .2015
边栏推荐
- Torch learning notes (5) -- autograd
- What does foo mean in programming?
- User identity used by startup script and login script in group policy
- 硬盘监控和分析工具:Smartctl
- Record: pymysql is used in pycharm to connect to the database
- Pytorch introduction to deep learning practice notes 13- advanced chapter of cyclic neural network - Classification
- Find the median of two positive arrays
- High concurrency Architecture - read write separation
- Record: install MySQL on ubuntu18.04
- Reappearance of ASPP (atlas spatial pyramid pooling) code
猜你喜欢

Web3 credential network project galaxy is better than nym?

【光学】基于matlab涡旋光产生【含Matlab源码 1927期】

Okaleido, a multimedia NFT aggregation platform, is about to go online, and a new NFT era may come

Caddy server agent

4. Load balancing and dynamic static separation

Flutter网络和数据存储框架搭建 -b1

为什么要做特征的归一化/标准化?

Torch learning notes (7) -- take lenet as an example for dataload operation (detailed explanation + reserve knowledge supplement)

Raft log replication

leetcode:11. 盛最多水的容器【双指针 + 贪心 + 去除最短板】
随机推荐
Simple solution of physical backup and restore of Damon database
[combinatorics] exponential generating function (example 2 of solving multiple set permutation with exponential generating function)
Kratos微服务框架下实现CQRS架构模式
Sqlalchemy - subquery in a where clause - Sqlalchemy - subquery in a where clause
Okaleido, a multimedia NFT aggregation platform, is about to go online, and a new NFT era may come
Flutter网络和数据存储框架搭建 -b1
多媒体NFT聚合平台OKALEIDO即将上线,全新的NFT时代或将来临
Chisel tutorial - 06 Phased summary: implement an FIR filter (chisel implements 4-bit FIR filter and parameterized FIR filter)
记录在模拟器中运行flutter时报的错
论文阅读 GloDyNE Global Topology Preserving Dynamic Network Embedding
Database creation, addition, deletion, modification and query
达梦数据库的物理备份和还原简解
Unity2018 to wechat games without pictures
我眼中真正优秀的CTO长啥样
Hard disk monitoring and analysis tool: smartctl
Raft log replication
cipher
NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
Torch learning notes (5) -- autograd
Ping problem between virtual machine and development board