Corrected fourier plotting function

This commit is contained in:
Max Heckmann 2023-01-07 12:35:30 +01:00
parent fc36c4c55c
commit bf8b42d432
2 changed files with 2 additions and 12 deletions

Binary file not shown.

View File

@ -17,12 +17,9 @@ function fourierPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, chan
%TO DO
end
%Don't really now what I am doing here.
fs = 1 / fileSettings{3}.Value;
Nfft = 2^nextpow2(length(yData));
yData = fft(yData, Nfft);
Nspec = 256;
Nspec = 1024;
wspec = hamming(Nspec);
Noverlap = Nspec/2;
@ -32,13 +29,6 @@ function fourierPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, chan
title(channels{channel});
%Plot the channel
% hold on
% figure(channel)
% spectrogram(yData, 'yaxis');
% title(channels{channel});
%Save plot
saveFigs('fourier', figure(channel), channels(channel), path, fileSettings{1}.Value)
%reset