![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/889965/image.png)
Finding the frequency spectrum of a list of column data
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am very new to MATLAB. Teaching myself as I go for my course.
I am given raw data of monthly averages of magnetic field intensity of the earth over a long period of time. Given 582 months worth of data,
I am to plot the data, then using a sampling rate of 12 beginning at t=0 I am to compute the spectrum. the sample frequency is 12 because we are looking at annual variations
0 Kommentare
Antworten (1)
AndresVar
am 10 Feb. 2022
Bearbeitet: AndresVar
am 10 Feb. 2022
Here are three options
1) My favorite is to use pspectrum(data,fs). Where fs is sample frequency.
For more information 'doc pspectrum'
2) You can also use the signal analyzer app to analyze and generate the code.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/889965/image.png)
3) You can use FFT to get power spectum see example: Power Spectral Density Estimates Using FFT - MATLAB & Simulink (mathworks.com)
0 Kommentare
Siehe auch
Kategorien
Mehr zu Spectral Measurements finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!