필터 지우기
필터 지우기

How to filter low frequency data set?

조회 수: 1 (최근 30일)
flemingtb
flemingtb 2018년 12월 13일
I have attached my example data set. What i would like to do is correct the data in each row based on the maximum value of the row. Meaning i need to first find the max value in each row, did this with a loop, and then subtract the max of the from the entire row, this will shift the high data to zero and the low number will become (-) values. I want to do this for each row in order to normalize the data and get rid of waviness from row to row.
Here's what i've got so far, i'm not expert it's probably obvious. The variable imax is the max values from each row, i'd like to iteratively subtract this number from each row of the same index. Stuck on that.
A = zg3
a = size(A,1)
imax = cell(a);
for a = 1:size(A,1)
zgmax = max(A(a,:))
imax{a} = zgmax;
end

답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by