what mistake I am making?

조회 수: 2 (최근 30일)
Manav Divekar
Manav Divekar 2021년 11월 30일
답변: Mathieu NOE 2021년 11월 30일
I am trying to rectify emg signal from the given text file.
%%
% Fatigue Data
impFatigueA = importdata('Fatigue_A.txt');
impFatigueK = importdata('Fatigue_K.txt');
impFatigueZ = importdata('Fatigue_Z.txt');
%% Rectifcication of the Signal
impFatigueA3 = abs(impFatigueA);
impFatigueK3 = abs(impFatigueK);
impFatigueZ3 = abs(impFatigueZ);
errror i am getting
>> untitled
Check for incorrect argument data type or missing argument in call to function 'abs'.
Error in untitled (line 36)
impFatigueA3 = abs(impFatigueA);

답변 (1개)

Mathieu NOE
Mathieu NOE 2021년 11월 30일
hello
I simply tested the first data set
when you do : impFatigueA = importdata('Fatigue_A.txt');
impFatigueA is a structure (containers)
to access the numerical data you have to dive a bit deeper
data1 = impFatigueA.data;
then you can take the abs of your data - I don't know yet which of the 16 columns you want to take the abs of it

카테고리

Help CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by