首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Matlab中求调频信号的相位

在Matlab中求调频信号的相位
EN

Stack Overflow用户
提问于 2013-11-11 23:53:23
回答 1查看 283关注 0票数 0

我想找出调频信号的相位。消息信号的Matlab代码是

代码语言:javascript
复制
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];

如何找出调频信号的相位?

EN

回答 1

Stack Overflow用户

发布于 2013-11-12 06:11:45

您需要在代码中进行以下更正:

代码语言:javascript
复制
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); 
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19910514

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档