本文介绍了信号是否周期性?使用MATLAB函数可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用MATLAB函数简要说明信号(非)周期性的原因

Briefly explain the reason for the (non)periodicity of a signal using MATLAB functions

像等距(信号)...

like isperiodic(signal) ...

像这样的东西吗?

推荐答案

fft 可以做到:

Y = fft(signal);
periodLength = 'second'; %or whatever units your signal was acquired in.
N = length(Y);
Y(1) = [];
power = abs(Y(1:floor(N/2))).^2;
nyquist = 1/2;
freq = (1:floor(N/2))/floor(N/2)*nyquist;
figure;
plot(freq,power)
grid on
xlabel(['cycles/' periodLength]);
title('Frequency plot');

这就是每个周期的周期数.

and this gives it as number of periods per cycle.

period = 1./freq;
figure;
plot(period,power)
grid on
ylabel('Power')
xlabel(['Period (' periodLength 's/Cycle)']);
title('Period Plot');

这篇关于信号是否周期性?使用MATLAB函数可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-23 19:17