Added changeable X-Axis. Does not work for Fourier plot since the spectogram function does not support it.

Also added differentiation functions (not used yet).
This commit is contained in:
@CarlWachter
2023-01-20 12:26:03 +01:00
parent 715c2fa53c
commit 3a19f862ad
5 changed files with 68 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
function meanPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, channels, path, order)
function meanPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, xAxis, channels, path, order)
%Iterate through all channels
for channel = 1:width(data)
@@ -45,7 +45,7 @@ function meanPlotFnc(data, fileSettings, checkboxes, start, stop, yAxis, channel
hold all
plot(timeArray, movmean(yData, str2double(order)), '-r');
ylabel(yAxis{channel}.Value);
xlabel('Time [s]');
xlabel(xAxis{channel}.Value);
legend('Without movmean', strcat('With movmean (', order, 'th order)'))
title(channels{channel});