我是靠谱客的博主 飞快电话,这篇文章主要介绍关于MATLAB 做FFT的两个问题,现在分享给大家,希望可以做个参考。

%%这两个都是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内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(113)

评论列表共有 0 条评论

立即
投稿
返回
顶部