Resetting index of filtered data in Matlab

2 次查看(过去 30 天)
Hi,
I have time information of length N from matrix X in below format
% Matrix X
Time_ms Data
100 ....
200
300
400
....
N
I have another matrix whose length is more than this previous time array. Matrix is like below
% Matrix Y
Time(ms) satx_pos saty_pos satz _pos
100 25312593 8315787 -97412.2
110 -5471969 20037795 16498179
120 .... ..... .....
130 ... ..... ...
.... ...... ......... ......
200 ..... .... ......
210 ......... ............ .......
.....
300
....
My goal is to match those rows which has same time as previous time vector and reset the index.
I am able to compare and match the rows using for loop but not able to reset the index. How can I achieve it so that finally I can concatenate the 2 matrix and form a single matrix for easy array operation.
Thanks

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by