MOVING AN ENTIRE MATRIX

2 visualizzazioni (ultimi 30 giorni)
diala yazbeck
diala yazbeck il 25 Feb 2021
Commentato: diala yazbeck il 26 Feb 2021
HELLO, ME AGAIN. i have hit a wall and cannot find the solution to my question. i have tried to write this as explained as possible.
so i am trying to MOVE an entire matrix to columns 7:12.
so basically i have 5 columns with over 900 corresponding rows of data.
column1 = # of footsteps, column 2 = time, column 3 = left/right foot, column 4 and 5 are x & y co-ordinates respectively.
so basically i am trying to go through column 2, identify when there is a jump in time, say from 5 seconds back to 2 seconds, and seperate the data from that point on.
This code needs to be applicable to any scenario. What i mean is footsteps 1-6 is considered a test1, 7-12 is considered test 2, 13-18 is considered test 3.
this is an example of the data i am working with. (COP)
THIS DATA shows a NEW Test. this is because of the jump in values in column 2! (time values) (THE ZEROES ARE REMOVED AND THE RESULTING DATA IS STORED UNDER A DIFFERENT NAME (COP_data). THIS IS BECAUSE THERE ARE MULTIPLE ZERO VALUES IN THE DATA SET. THESE ZEROS MEAN DOUBLE STANCE. WE DO NOT CARE ABOUT DOUBLE STANCE, THAT IS WHY THEY ARE REMOVED). ** this is in capitals because it is important).
this is what COP_data looks like.
currently i have two tests in the data set but sometimes there could be up to 5. Each test is completed in different times. so test 1 may be from 2 seconds to 6 seconds, test 2 is 3 seconds to 7 seconds and test 13-18 is 2 seconds to 7 seconds. it varies and is dependant on the time. (column 2). i need to write a sript that tells me where that change from final time to initial time happens and moves all the data to another column.
i hope that makes sense.
i have no code so far because i have no idea what to even look at for this.
  3 Commenti
diala yazbeck
diala yazbeck il 26 Feb 2021
lol, it does not. it has more information!!!!!
diala yazbeck
diala yazbeck il 26 Feb 2021
look man, i need help. So if you could please offer any suggestions as what i should be searching i'd really appreciate it. if not, thank you for time.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements 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