搜索资源列表
diguixiajiang
- 可以识别字符串是否符合以下文法: (1)E->TG (2)G->+TG|—TG (3)G->ε (4)T->FS (5)S->*FS|/FS (6)S->ε (7)F->(E) (8)F->i
example4_6
- :滤波 fs=400 采样频率,必须大于两倍基带信号最高频率 ts=1/fs 采样时间间隔 T=5 时间窗大小 t=0:ts:T -hf1=zeros(1,N) hf1(f<=B1&f>=-B1)=1 y1=hf1.*fftshift(y) figure subplot(211) plot(f,abs(fftshift(y))/N,f,hf1, r-- ) axis([-fs/2,fs/2,0,1.2]) title( 原信号
example4_4
- 例4:在sinc(t)信号中叠加噪声,分析对应频谱 fs=100 采样频率,必须大于两倍基带信号最高频率 ts=1/fs 采样时间间隔 T=2 时间窗大小 - x=x+0.1*randn(1,N) x=awgn(x,-10, measured ) figure plot(t,x) title( 时域信号图 ) xlabel( t /s ) y=fft(x,N) figure if mod(N,2)~=0
example4_3
- 例3:分析占空比为ta的矩形脉冲频谱 T=1 时间窗大小 ta=0.5 占空比 N=256 t=linspace(-T,T,N) ts=2*T/N fs=1/ts -x=zeros(1,N) x(N/2-round(N/2*ta):N/2+round(N/2*ta))=ones(1,2*round(N/2*ta)+1) y=fft(x,N) figure plot(t,x) title([ 时域信号图 占空比为 ,num
diguixiajiangfenxiqi
- 递归下降分析法设计与实现,可以分析E--TG和T--FS-Recursive descent analysis Design and Implementation