How can I get the power spectrum using fft function?
2 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Fourier Analysis and Filtering in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!