资源简介
matlab开发-PSD功率谱密度和振幅谱,可调节。FFT计算一维信号的PSD和单边幅度谱y[f]
代码片段和文件信息
% SPECTRAL ANALYSIS
% Demo application of the FFT function
% [fy]=FFT(yFs)
%
% (c)KHMOU Youssef ; Signal Processing 2013
clearclc
close all
% Info Display=============================================================
% 1st Part : we compute the spectrum of sinusoidal signal with frequency Fc
fprintf(‘ Welcome to this demonstration of using the function FFT : \n\n\n‘)
fprintf(‘ This simple demo is divided into 2 parts :\n‘);
fprintf(‘ 1st Part : we compute the fft of an analytic signal Y(t) of 2 secondes \n‘);
fprintf(‘ Y(t)= Ampiltude * exp ( j* 2 * pi * t * Fc)\n‘);
fprintf(‘ 2nd Part : we compute the fft of the squared Y(t)瞈n‘);
fprintf(‘ Type “return“ to begin : \n\n‘);
keyboard;
clc
f1=input(‘ Enter a Fundamental frequency Fc of the
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2829 2013-01-25 10:32 Demo_FFT.m
文件 3749 2013-09-03 17:56 FFT.m
文件 80493 2013-09-03 17:59 KHMOU_Demo_Fast_Fourier_Transform.jpg
文件 1313 2014-02-12 14:33 license.txt
评论
共有 条评论