Added CSV file support, scrolling to allow for more data, and implemented first row secs option.

This commit is contained in:
@CarlWachter
2023-01-17 15:02:30 +01:00
parent bf8b42d432
commit 067a6d1d1a
6 changed files with 41 additions and 11 deletions

View File

@@ -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});