Filtering out noise or eigenfrequency in acceleration data
Mostrar comentarios más antiguos
Hello everybody,
For my master thesis I recorded some acceleration data at 4 measuring devices (see file attached, eacht column corresponds to one measuring device). The samling frequency is 300, so time step 1/300 = 0.0033s.
If I plot this graph (t against acc) I get lots of noise and high peaks. I guess they are because of the measuring device noise and some eigenfrequency of the specimen and the shaking table. I know from fft that the eigenfrequency of the shaking table is 50 Hz and from the specimen it is 6.85 Hz.
I tried many different filters but I did not find the correct one to clean out this high frequency acceleration peaks. Can you help me?
So far I did:
clc; clear;
load panels_umbro100_acc
acc = acc_g.*9.81; % because sampling data in in unit [g]
% create time vector
tStep = 0.00333; % Length of each time step
N = length(acc)*tStep;
t = 0:tStep:N;
t = t'; % column vector
t(end) = [];
dt = mean(diff(t)); % Average dt
fs = 1/dt;
% detrending
acc = detrend(acc);
% filter
N = 2; % quadratic
absolutevalue = 0.08;
[B,A] = butter(N,absolutevalue,'low');
acc2 = filter(B,A,acc); % filtered acceleration [m/s2]
% and I tried this filter to filter out fundamental frequency of specimen
% but what should I take as a q factor?
wo = 6.85/(300/2); % frequency to filter (6.85Hz) and sampling freq (300)
bw = wo/1; % wo / q factor (?)
[u,v] = iirnotch(wo,bw);
fvtool(u,v);
acc3 = filter(u,v,acc2); % filters acc2 by u and v
acc3_g = acc2./9.81; % filtered acceleration [g]
% plot for first measuring device
figure
figure1 = plot(t,acc3_g(:,1));
xlabel('t [s]')
ylabel('acc [g]')
grid on
The acceleration data of the first measuring device was on the shaking table so it should be the same as the graph attached.
I am really desperate and happy about any answer! Thanks a lot!
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Spectral Measurements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!