Remove the baseline wander
Show older comments
I want to remove the motion artifacts from my signal. I am using matlab for the signal processing and this code for the serial communication with arduino. How can I do the motion artifacts removal?
clc
close all
clear all
if ~isempty(instrfind)
fclose(instrfind);
delete(instrfind);
end
%close all
clc
disp('Serial Port Closed')
s = serial('COM5','BaudRate',9600);
fopen(s);
fprintf(s,'*IDN?');
i = 1;
while true
x(i) = str2double(fscanf(s));
i = i + 1;
plot(x)
pause(0.1)
end
1 Comment
Star Strider
on 4 Sep 2019
Use a highpass (or bandpass) filter. If you are doing this in real time, implement it in hardware.
Accepted Answer
More Answers (0)
Categories
Find more on Filter Design in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!