⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c7_sinewave.m

📁 無線通訊系統仿真原理與應用 詳細介紹通訊的仿真方法
💻 M
字号:
% File: c7_sinewave.m
% Software given here is to accompany the textbook: W.H. Tranter, 
% K.S. Shanmugan, T.S. Rappaport, and K.S. Kosbar, Principles of 
% Communication Systems Simulation with Wireless Applications, 
% Prentice Hall PTR, 2004.
%
f = 1;											% frequency of sinusoid
fs = 100;										% sampling frequency
t = (0:200)/fs;									% time vector
for i=1:20
   x(:,i) = cos(2*pi*f*t+rand(1)*2*pi)';
   y(:,i) = cos(2*pi*f*t+rand(1)*pi/2)';
   z(:,i) = (1+rand(1))*cos(2*pi*f*t)';
end
subplot(3,1,1); plot(t,x,'k'); ylabel('x(t)')
subplot(3,1,2); plot(t,y,'k'); ylabel('y(t)')
subplot(3,1,3); plot(t,z,'k'); ylabel('z(t)')
% End of script file.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -