extracting data around local minima?
이전 댓글 표시
hello,
First, let me give basic framework for the problem: I have data sets that reflect the trajectory of a joystick movement(X,y coordinates in a matrix). The subject needs to move the joystick from neutral past a distance to receive a reward.
I want to extract each pull. One complication is once they reach the target, they stay for a brief moment to collect the reward, just the numbers bounce slightly, giving me many local minima.
I was hoping to have code that reads through the matrix, finds the point where it hits a minimum, stays (perhaps means the noise at the target location), and puts the "pull" into a new matrix or array, etc. There is no consistent number of points between pulls.
I know how to weed out the neutral location data, it's the finding local minima and extracting that is giving me trouble.
Update: I have the local minima. Now, just to get the points in-between each local minima!
thanks!
댓글 수: 3
Image Analyst
2013년 11월 18일
Can you attach a data file, and post a diagram or figure or some kind of illustration? Why don't you have vectors? Aren't the x and y both vectors? You could turn it into a 1D vector representing the distance from the starting location.
MacKenzie
2013년 11월 18일
MacKenzie
2013년 11월 18일
답변 (1개)
카테고리
도움말 센터 및 File Exchange에서 Signal Operations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!