필터 지우기
필터 지우기

MOVING AN ENTIRE MATRIX

조회 수: 2 (최근 30일)
diala yazbeck
diala yazbeck 2021년 2월 25일
댓글: diala yazbeck 2021년 2월 26일
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
diala yazbeck
diala yazbeck 2021년 2월 26일
lol, it does not. it has more information!!!!!
diala yazbeck
diala yazbeck 2021년 2월 26일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by