当前位置:网站首页>[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
边栏推荐
- Zhengda futures news: soaring oil prices may continue to push up global inflation
- Usage of laravel conditional array in
- Implementation of cqrs architecture mode under Kratos microservice framework
- leetcode:11. Container with the most water [double pointer + greed + remove the shortest board]
- 【水质预测】基于matlab模糊神经网络水质预测【含Matlab源码 1923期】
- Unity webgl optimization
- 042. (2.11) do it when it's time to do it
- How to disable the clear button of ie10 insert text box- How can I disable the clear button that IE10 inserts into textboxes?
- CTO and programmer were both sentenced for losing control of the crawler
- 硬盘监控和分析工具:Smartctl
猜你喜欢

FBI 警告:有人利用 AI 换脸冒充他人身份进行远程面试

Su embedded training - Day10

Read the paper glodyne global topology preserving dynamic network embedding

What is SQL get connection

Pan for in-depth understanding of the attention mechanism in CV

Why can deeplab v3+ be a God? (the explanation of the paper includes super detailed notes + Chinese English comparison + pictures)

Pytorch introduction to deep learning practice notes 13- advanced chapter of cyclic neural network - Classification

Record: solve the problem that MySQL is not an internal or external command environment variable

Dart JSON编码器和解码器剖析

【光学】基于matlab介电常数计算【含Matlab源码 1926期】
随机推荐
The more you talk, the more your stupidity will be exposed.
[leetcode weekly race] game 300 - 6110 Number of incremental paths in the grid graph - difficult
【数学建模】基于matlab船舶三自由度MMG模型【含Matlab源码 1925期】
Which do MySQL and Oracle learn?
MySQL duplicate check
High concurrency Architecture - distributed search engine (ES)
Smart wax therapy machine based on STM32 and smart cloud
189. Rotation array
How many convolution methods does deep learning have? (including drawings)
Boost. Asio Library
Compose LazyColumn 顶部添加控件
NFT新的契机,多媒体NFT聚合平台OKALEIDO即将上线
为什么要做特征的归一化/标准化?
application
SQL: special update operation
my. INI file not found
Caddy server agent
Help change the socket position of PCB part
PyTorch中在反向传播前为什么要手动将梯度清零?
Torch learning notes (6) -- logistic regression model (self training)