当前位置:网站首页>[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
边栏推荐
- Data analysis is popular on the Internet, and the full version of "Introduction to data science" is free to download
- Scrapy爬虫框架
- High concurrency Architecture - distributed search engine (ES)
- How to read the source code [debug and observe the source code]
- Add control at the top of compose lazycolumn
- Reading a line from ifstream into a string variable
- VLAN experiment
- What does foo mean in programming?
- Integrated easy to pay secondary domain name distribution system
- Multifunctional web file manager filestash
猜你喜欢
知其然,而知其所以然,JS 对象创建与继承【汇总梳理】
How does GCN use large convolution instead of small convolution? (the explanation of the paper includes super detailed notes + Chinese English comparison + pictures)
Simulation scheduling problem of SystemVerilog (1)
Smart wax therapy machine based on STM32 and smart cloud
FBI warning: some people use AI to disguise themselves as others for remote interview
【学术相关】顶级论文创新点怎么找?中国高校首次获CVPR最佳学生论文奖有感...
NFT new opportunity, multimedia NFT aggregation platform okaleido will be launched soon
Help change the socket position of PCB part
application
平淡的生活里除了有扎破皮肤的刺,还有那些原本让你魂牵梦绕的诗与远方
随机推荐
Simulation scheduling problem of SystemVerilog (1)
Su embedded training - Day10
SQL: special update operation
Sustainable service business models
Succession of flutter
Help change the socket position of PCB part
High concurrency Architecture - distributed search engine (ES)
leetcode:556. Next larger element III [simulation + change as little as possible]
Coordinate layer conversion tool (video)
PHP determines which constellation it belongs to today
【光学】基于matlab涡旋光产生【含Matlab源码 1927期】
Le changement est un thème éternel
JS_ Array_ sort
简述服务量化分析体系
Raft 日志复制
Okaleido, a multimedia NFT aggregation platform, is about to go online, and a new NFT era may come
How about the Moco model?
What is SQL get connection
Failed to start component [StandardEngine[Catalina]. StandardHost[localhost]. StandardContext
[combinatorics] dislocation problem (recursive formula | general term formula | derivation process)*