Azzera filtri
Azzera filtri

Resetting index of filtered data in Matlab

2 visualizzazioni (ultimi 30 giorni)
SATINATH DEBNATH
SATINATH DEBNATH il 27 Gen 2020
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

Risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by