mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sw-plotting-tool.git
synced 2025-12-18 02:48:02 +00:00
Added CSV file support, scrolling to allow for more data, and implemented first row secs option.
This commit is contained in:
@@ -14,17 +14,23 @@ function fourierPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, chan
|
||||
if fileSettings{2}.Value == 0
|
||||
[timeArray, yData] = timeAxisWithIncrement(data, fileSettings{3}.Value, beginning, ending, channel);
|
||||
else
|
||||
%TO DO
|
||||
timeArray = data(:,1);
|
||||
yData = data(:, channel);
|
||||
end
|
||||
|
||||
fs = 1 / fileSettings{3}.Value;
|
||||
|
||||
Nspec = 1024;
|
||||
if length(yData) < 1024
|
||||
Nspec = length(yData) - 1;
|
||||
else
|
||||
Nspec = 1024;
|
||||
end
|
||||
wspec = hamming(Nspec);
|
||||
Noverlap = Nspec/2;
|
||||
|
||||
hold on
|
||||
figure(channel)
|
||||
|
||||
spectrogram(yData, wspec, Noverlap, Nspec, fs, 'yaxis');
|
||||
title(channels{channel});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user