Matching two vectors of different lengths in MATLAB

I have data from two different sensors loaded into two separate vectors. These sensors measure the same acceleration, and therefore their structure is the same. However, due to noise measurements, the values ​​will be slightly different for both. In addition, due to different sampling rates and delays, etc. One vector will be longer than another.

My question is how to equate these two vectors. That is, I need to find a read in vectorA that matches a specific read in vectorB. I tried to compare extrema with the findpeaks () function, but I'm not sure exactly how to do this.

Thank!

+3
source share
2 answers

"" . , , . , , , , , , ( ).

, , , .

, ?

,

int (|| f (r * t) - g (t) || ^ 2) r.

f , "" g. , r t. , , , ( r ).

, , r r. - , "".

, , Kalman, .

, ( -?).

, , , r . , ( ).

, - /? ( ).

+3

, , . - , , . , . FFT , . , , .

, , , . , , . . , . , ( ) .

+3

Source: https://habr.com/ru/post/1786816/


All Articles