How can I get the power spectrum using fft function?
显示 更早的评论
I have tried to follow the procedure in https://uk.mathworks.com/help/matlab/ref/fft.html however, I still could not figure it out. Could someone kindly please assist me with this?
clear; clc; A1=1; %Amplitude multiplier A2=0.90; %Amplitude multiplier f1 = 122; % frequency of the first sinus f2 = 44; %frequency of the second sinus fs = 1000; %Sampling frequency t = 0:(1/fs):1; S = A1*sin(2*pi*f1*t) + A2*sin(2*pi*f2*t+5); plot(t,S);

回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Fourier Analysis and Filtering 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!