Find index in matrix
이전 댓글 표시
I am looking to find the first value in a 1600x6 dimension matrix. Column 1 contains dates formatted as yymmdd and column 2 has times formated as mmss.
How would I find the row that contains say 100104 1012 which would be 10:12 on Oct 04 2010
I just need the row index so I can collect the rest of the values
채택된 답변
추가 답변 (1개)
Andrei Bobrov
2011년 9월 17일
[~,indrow] = ismember([101004,1012],A(:,1:2),'rows')
카테고리
도움말 센터 및 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!