Hi, I have never used Matlab before but as part of a project I need to convert data in time domain to frequency domain with the x axis in the unit of rad/sec. Can anyone help me to produce this code? The data is attached and consists of 80 samples per second. My progress on the code can be seen below. Thank you in advance.
signal = load('F072.txt');
N = length (signal);
fs = 80;
X_amp = abs(fft(signal));
bin_vals = [0 : N-1];
fax_rads_second = ((bin_vals/N)*2*pi)*80;
title('Single-sided Magnitude spectrum');