How do ı calculate the harmonics by inspecting the signal in matlab?

2 次查看(过去 30 天)
such as this signal gf=cos(2*pi*10*t)+ 0.5*sin(2*pi*20*t)+4*cos(2*pi*30*t-pi/3)

回答(1 个)

Rick Rosson
Rick Rosson 2014-10-12
dt = t(2) - t(1);
Fs = 1/dt;
pwelch(gf,[],[],[],Fs);

类别

Help CenterFile Exchange 中查找有关 Code Inspection 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by