How to filter and remove unwanted noise from muscle contraction reading data in MATLAB

조회 수: 2 (최근 30일)
I have a project where I need to remove unwanted noise in MATLAB data. It is a lot of data and contains a lot of noise. How can I make this data readable? I am very new to MATLAB and not fimiliar with most of the commands.
Thank you!
  댓글 수: 2
TheNewGuy
TheNewGuy 2022년 1월 24일
Yes. There is a little bit more than just removing noise that I need. I was given two sets of data collected from an electrode and an oscilloscope. There are electrical measurements of the right and left bicep for each. The two sets of electrical data are different trials but taken over a different time interval. I am trying to determine which bicep is stronger based on the two sets of measurements. It is unknown which Bicep is stronger. Sample rate is 8000Hz. The first set is over 1 second at 8000Hz and the second is over 10 seconds at 8000Hz. Thank you!

댓글을 달려면 로그인하십시오.

답변 (1개)

Alagu Sankar Esakkiappan
Alagu Sankar Esakkiappan 2022년 1월 25일
Hello!
I see that you're trying to remove unwanted noise from your dataset in RightvsLeftBicep.xlsx . There are many ways to filter such data using MATLAB. One such method is smoothdata which uses weighted averaging among others to reduce noise. There are many filtering methods in smoothdata and different window periods you may try out to see which one fits best for your use case. You may refer to the following code snippet for reference:
warning('OFF', 'MATLAB:table:ModifiedAndSavedVarnames'); % To Suppress Warning due to incompatible Column Names in Dataset
exerciseTable = readtable( "RightvsLeftBicep.xlsx"); % You may try avoiding Spaces in 1st row of DataSet as good practice
t = exerciseTable{:,1};
rightBicep = exerciseTable{:,2};
leftBicep = exerciseTable{:,3};
% Every single entry as output of smoothdata is a result of 1000 Sample points.
% You may try reducing or increasing them as per your use case to further
% reduce sharp peaks and troughs.
plot(t,smoothdata(rightBicep,'sgolay',1000));
hold on;
% Alternatively, You may also explore other
% methods in smoothdata documentation
plot(t,smoothdata(leftBicep,'sgolay',1000));
legend("Right Bicep","Left Bicep");

카테고리

Help CenterFile Exchange에서 Measurements and Feature Extraction에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by