mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sw-plotting-tool.git
synced 2025-06-10 01:55:59 +00:00
Corrected fourier plotting function
This commit is contained in:
parent
fc36c4c55c
commit
bf8b42d432
Binary file not shown.
@ -17,12 +17,9 @@ function fourierPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, chan
|
|||||||
%TO DO
|
%TO DO
|
||||||
end
|
end
|
||||||
|
|
||||||
%Don't really now what I am doing here.
|
|
||||||
fs = 1 / fileSettings{3}.Value;
|
fs = 1 / fileSettings{3}.Value;
|
||||||
Nfft = 2^nextpow2(length(yData));
|
|
||||||
yData = fft(yData, Nfft);
|
|
||||||
|
|
||||||
Nspec = 256;
|
Nspec = 1024;
|
||||||
wspec = hamming(Nspec);
|
wspec = hamming(Nspec);
|
||||||
Noverlap = Nspec/2;
|
Noverlap = Nspec/2;
|
||||||
|
|
||||||
@ -31,14 +28,7 @@ function fourierPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, chan
|
|||||||
spectrogram(yData, wspec, Noverlap, Nspec, fs, 'yaxis');
|
spectrogram(yData, wspec, Noverlap, Nspec, fs, 'yaxis');
|
||||||
title(channels{channel});
|
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)
|
saveFigs('fourier', figure(channel), channels(channel), path, fileSettings{1}.Value)
|
||||||
|
|
||||||
%reset
|
%reset
|
||||||
|
Loading…
x
Reference in New Issue
Block a user