Matlab源码展示:2ASK调制与解调如何实现数字信号振幅?
- 内容介绍
- 文章标签
- 相关推荐
本文共计315个文字,预计阅读时间需要2分钟。
1. 简介 本函数利用快速傅里叶变换(FFT)计算信号的傅里叶变换。
2. 部分代码 function [f, sf]=T2F(t, st) This is a function using the FFT function to calculate a signal's Fourier Transform. Input is the time and the signal vectors, the length of time must be greater than 2. Output: %s
1 简介
编辑
2 部分代码
function [f,sf]= T2F(t,st)%This is a function using the FFT function to calculate a signal's Fourier
%Translation
%Input is the time and the signal vectors,the length of time must greater
%than 2
%Output is the frequency and the signal spectrum
dt = t(2)-t(1);
T=t(end);
df = 1/T;
N = length(st);
f=-N/2*df:df:N/2*df-df;
sf = fft(st);
sf=T/N*fftshift(sf);
3 仿真结果
编辑
4 参考文献
[1]杨兆飞. 基于Matlab的数字传输信号调制与解调分析与仿真[J]. 智能机器人, 2012(4):74-76.
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。
编辑
本文共计315个文字,预计阅读时间需要2分钟。
1. 简介 本函数利用快速傅里叶变换(FFT)计算信号的傅里叶变换。
2. 部分代码 function [f, sf]=T2F(t, st) This is a function using the FFT function to calculate a signal's Fourier Transform. Input is the time and the signal vectors, the length of time must be greater than 2. Output: %s
1 简介
编辑
2 部分代码
function [f,sf]= T2F(t,st)%This is a function using the FFT function to calculate a signal's Fourier
%Translation
%Input is the time and the signal vectors,the length of time must greater
%than 2
%Output is the frequency and the signal spectrum
dt = t(2)-t(1);
T=t(end);
df = 1/T;
N = length(st);
f=-N/2*df:df:N/2*df-df;
sf = fft(st);
sf=T/N*fftshift(sf);
3 仿真结果
编辑
4 参考文献
[1]杨兆飞. 基于Matlab的数字传输信号调制与解调分析与仿真[J]. 智能机器人, 2012(4):74-76.
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。
编辑

