I have a data set comprising a number of strain measurements obtained from a strain gauge and would like to filter out the ultra high frequncy noise present inbetween the seperate measurements. See code attached below š
clc, clear, close all;load('7004x4.mat')t= g{:,1};sm= g{:,3};sm= rmmissing(sm);t=rmmissing(t);n=10;t = arrayfun(@(i) mean(t(i:i+n-1)),1:n:length(t)-n+1)';sm= arrayfun(@(i) mean(sm(i:i+n-1)),1:n:length(sm)-n+1)';plot(t,sm)xlabel('Time Elapsed (s)')ylabel('Strain')title('Strain Signal')fs= 6.2e-4;
Best Answer