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

📄 rect1.m

📁 关于超宽带的一系列仿真包括高斯波形各阶导函数波形频谱以及采用高斯导函数的跳时超宽带仿真程序
💻 M
字号:
%
%FUNCTION 1.1 :"cp0101_genrect"
%
%generates a unitary amplitude rectangular waveform
%that is modulated by a sinusoid at frequency 'f0'
%'signal' is the output waveform
%'dt' is the sampling period
% 
function [signal,dt]=cp0101_genrect
width=1e-1;
points=1000;
f0=1e3;
dt=width/points;
signal=zeros(1,5*points);
signal(2*points:3*points-1)=ones(1,points);
mod=cos(2.*pi.*f0.*linspace(1,5*width,5*points));
signal=signal.*mod;
figure(1)
time=linspace(-2*width,3*width,5*points);
p1=plot(time,signal);
set(p1,'linewidth',[2]);
axis([-2*width 3*width -1.2 1.2]);
ax=gca;
set(ax,'fontsize',12);
x=xlabel('time[s]');
set(x,'fontsize',14);
y=ylabel('amplitude[v]');
set(y,'fontsize',14);

⌨️ 快捷键说明

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