mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sw-plotting-tool.git
synced 2025-06-10 01:55:59 +00:00
Increment UI removed when using CSV files with first row secs.
First Row Secs now uses start and stop times.
This commit is contained in:
parent
46cba1c060
commit
580e873d6f
Binary file not shown.
@ -14,8 +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
|
||||
timeArray = data(:,1);
|
||||
yData = data(:, channel);
|
||||
timeIndex = 1;
|
||||
while data(timeIndex,1) < str2double(start{channel}.Value)
|
||||
timeIndex = timeIndex + 1;
|
||||
end
|
||||
|
||||
startIndex = timeIndex;
|
||||
|
||||
while data(timeIndex, 1) <= str2double(stop{channel}.Value) || timeIndex >= length(data)
|
||||
timeArray(timeIndex - startIndex + 1) = data(timeIndex,1);
|
||||
timeIndex = timeIndex + 1;
|
||||
end
|
||||
|
||||
endIndex = timeIndex;
|
||||
|
||||
for timeIndex = startIndex:endIndex - 1
|
||||
yData(timeIndex - startIndex + 1) = data(timeIndex, channel);
|
||||
end
|
||||
end
|
||||
|
||||
fs = 1 / fileSettings{3}.Value;
|
||||
|
@ -14,8 +14,24 @@ function graphPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, channe
|
||||
if fileSettings{2}.Value == 0
|
||||
[timeArray, yData] = timeAxisWithIncrement(data, fileSettings{3}.Value, beginning, ending, channel);
|
||||
else
|
||||
timeArray = data(:,1);
|
||||
yData = data(:, channel);
|
||||
|
||||
timeIndex = 1;
|
||||
while data(timeIndex,1) < str2double(start{channel}.Value)
|
||||
timeIndex = timeIndex + 1;
|
||||
end
|
||||
|
||||
startIndex = timeIndex;
|
||||
|
||||
while data(timeIndex, 1) <= str2double(stop{channel}.Value) || timeIndex >= length(data)
|
||||
timeArray(timeIndex - startIndex + 1) = data(timeIndex,1);
|
||||
timeIndex = timeIndex + 1;
|
||||
end
|
||||
|
||||
endIndex = timeIndex;
|
||||
|
||||
for timeIndex = startIndex:endIndex - 1
|
||||
yData(timeIndex - startIndex + 1) = data(timeIndex, channel);
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
@ -14,8 +14,23 @@ function meanPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, channel
|
||||
if fileSettings{2}.Value == 0
|
||||
[timeArray, yData] = timeAxisWithIncrement(data, fileSettings{3}.Value, beginning, ending, channel);
|
||||
else
|
||||
timeArray = data(:,1);
|
||||
yData = data(:, channel);
|
||||
timeIndex = 1;
|
||||
while data(timeIndex,1) < str2double(start{channel}.Value)
|
||||
timeIndex = timeIndex + 1;
|
||||
end
|
||||
|
||||
startIndex = timeIndex;
|
||||
|
||||
while data(timeIndex, 1) <= str2double(stop{channel}.Value) || timeIndex >= length(data)
|
||||
timeArray(timeIndex - startIndex + 1) = data(timeIndex,1);
|
||||
timeIndex = timeIndex + 1;
|
||||
end
|
||||
|
||||
endIndex = timeIndex;
|
||||
|
||||
for timeIndex = startIndex:endIndex - 1
|
||||
yData(timeIndex - startIndex + 1) = data(timeIndex, channel);
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user