查找调频信号';Matlab中的s相
我想找出调频信号的相位。消息信号的Matlab代码是查找调频信号';Matlab中的s相,matlab,telecommunication,phase,modulation,Matlab,Telecommunication,Phase,Modulation,我想找出调频信号的相位。消息信号的Matlab代码是 m= ones(1,Fs); m= [m(1:round(.4*Fs))*1, m(round(.4*Fs)+1:round(.7*Fs))*-2 ... m(round(.7*Fs)+1:Fs)*0]; 如何找到调频信号的相位?您需要在代码中进行以下更正: Kf=50; %%% increase Kf no notice effect Fc=400; Fs=5000; %%% Increase Fs. Nyquist crite
m= ones(1,Fs);
m= [m(1:round(.4*Fs))*1, m(round(.4*Fs)+1:round(.7*Fs))*-2 ...
m(round(.7*Fs)+1:Fs)*0];
如何找到调频信号的相位?您需要在代码中进行以下更正:
Kf=50; %%% increase Kf no notice effect
Fc=400;
Fs=5000; %%% Increase Fs. Nyquist criterion!
t=linspace(0,1,Fs);
m= ones(1,Fs);
m= [m(1:round(.4*Fs))*1 m(round(.4*Fs)+1:round(.7*Fs))*-2 m(round(.7*Fs)+1:Fs)*0];
fi_t =2*pi*Kf*cumtrapz(t,m);%%% use cumtrapz, not cum. Reverse order
u=10*cos(2*pi*Fc*t+fi_t);
plot(t,u);
如果你理解FM是什么,这是显而易见的。你试过什么?您需要通过函数ELE361_Proje2(Kf,Fc,Fs)定义调制指数Kf=50;Fc=400;Fs=100;t=linspace(0,1,Fs);m=一(1,Fs);m=[m(1:round(.4*Fs))*1米(round(.4*Fs)+1:round(.7*Fs))*-2米(round(.7*Fs)+1:Fs)*0];%消息信号fi_t=2*piKftrapz(m,t);%相位u=10*cos(2*piFct+fi_t);%调制信号图(t,m);我尝试了trapz方法来集成,但我得到了这个图形(调制信号:见我的答案。下次你应该更新你的queston以包含代码,因为在注释中它无法正确格式化