概述
%%这两个都是MATLAB中的例子
% Sunspot activity is cyclical, reaching a maximum about every 11 years. Let's
% confirm that. Here is a plot of a quantity called the Zurich sunspot
% relative number, which measures both number and size of sunspots.
% Astronomers have tabulated this number for almost 300 years.
load sunspot.dat
year=sunspot(:,1);
relNums=sunspot(:,2);
plot(year,relNums)
title('Sunspot Data')
%%
% Here is a closer look at the first 50 years.
plot(year(1:50),relNums(1:50),'b.-');
%%
% The fundamental tool of signal processing is the FFT, or fast Finite Fourier
% Transform. To take the FFT of the sunspot data type the following.
%
% The first component of Y, Y(1), is simply the sum of the data, and can be
% removed.
Y = fft(relNums);
Y(1)=[];
%%
最后
以上就是飞快电话为你收集整理的关于MATLAB 做FFT的两个问题的全部内容,希望文章能够帮你解决关于MATLAB 做FFT的两个问题所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复