How to take only few rows in a large matrix
조회 수: 2 (최근 30일)
이전 댓글 표시
Dear All,
I'm working with a large amount of data in a matrix.My problem is the following one.
I have a large matrix which looks like:
- Initial matrix
X Y Z
0.2 0 6
0.4 0 7
0.6 0 8 values of Y are repeated a lot of time
.. .. ..
.. .. ..
0.1 2 9
0.4 2 10
0.8 2 11
.. .. ..
11 4 6
12 4 8
4 4 9
- Final marix
X Y Z
0.2 0 6
0.1 2 9
11 4 6
My goal is to take few rows of the matrix because Y values are repeated.
댓글 수: 1
Image Analyst
2013년 11월 11일
Which row do you want to take? The first row when that value of Y appears? Are y always integers or can they be fractional?
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!