資源簡介
MATLAB_SImulink通信系統建模與仿真實例分析源代碼.rar

代碼片段和文件信息
%?ch1example1prg1.m
g=9.8;??%?重力加速度
v=0;????%?設定初始速度條件
s=0;????%?設定初始位移條件
t=0;????%?設定起始時間
dt=0.1;?%?設置計算步長
N=20;???%?設置仿真遞推次數.?仿真時間等于N與dt的乘積
for?k=1:N
??v=v+g*dt;?????????????????%?計算新時刻的速度
??s(k+1)=s(k)+v*dt;?????????%?新位移
??t(k+1)=t(k)+dt;???????????%?時間更新
end
%?理論計算?以便與仿真結果對照
t_theory=0:0.01:N*dt;???????%?設置解析計算的時間點
v_theory=g*t_theory;????????%?解析計算的瞬時速度
s_theory=1/2*g*t_theory.^2;?%?解析計算的瞬時位移
%?作圖:?仿真結果與解析結果對比
t=0:dt:N*dt;
plot(ts‘o‘?t_theorys_theory?‘-‘);
xlabel(‘時間?t‘);?ylabel(‘位移?s‘);
legend(‘仿真結果‘‘理論結果‘);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????I.A....????118835??2007-08-29?15:53??ch7example11.mdl
????I.A....?????42815??2007-08-29?11:46??ch7example10.mdl
????I.A....?????36345??2007-09-02?18:39??cpmsignalspaceplot.mdl
????I.A...R?????33873??2007-06-27?11:19??ch2example16sfun.c
????I.A....?????28897??2007-09-09?12:48??ch7example27.mdl
????I.A....?????28771??2007-09-09?07:40??ch7example26.mdl
????I.A....?????27800??2007-08-05?10:13??ch3example21.mdl
????I.A....?????27354??2007-08-16?11:10??ch5example6.mdl
????I.A...R?????27096??2007-07-24?14:20??ch3example15.mdl
????I.A....?????26080??2007-09-10?15:56??ch7example28.mdl
????I.A....?????24744??2007-08-23?08:47??ch6example8.mdl
????I.A....?????24730??2007-08-15?16:10??ch5example3.mdl
????I.A...R?????24576??2007-06-27?11:19??ch2example16Sfun.dll
????I.A....?????23319??2007-08-13?17:22??ch5example2.mdl
????I.A...R?????22645??2007-07-02?14:09??ch2example27.mdl
????I.A....?????22518??2007-08-23?15:03??ch6example10.mdl
????I.A....?????22156??2007-08-28?17:54??ch7example9.mdl
????I.A....?????21936??2007-08-07?11:55??ch3example24.mdl
????I.A....?????21765??2007-08-23?10:49??ch6example9.mdl
????I.A....?????20216??2007-08-15?19:14??ch5example4.mdl
????I.A....?????20150??2007-08-07?15:16??ch3example25.mdl
????I.A....?????19957??2007-08-22?08:57??ch6example2.mdl
????I.A....?????19771??2007-09-08?20:13??ch7example25.mdl
????I.A....?????19059??2007-08-26?12:47??ch7example4.mdl
????I.A....?????18945??2007-08-13?14:39??ch5example1.mdl
????I.A....?????18854??2007-08-21?15:35??ch6example1.mdl
????I.A....?????18191??2007-08-16?09:56??ch5example5.mdl
????I.A....?????18174??2007-08-03?20:16??ch3example18.mdl
????I.A....?????17818??2007-08-07?21:51??ch3example26.mdl
????I.A....?????17681??2007-08-22?14:36??ch6example7.mdl
............此處省略182個文件信息
- 上一篇:FSRCNN代碼Matlab
- 下一篇:學生信息管理數據庫,數據庫文件
評論
共有 條評論