Matrix reduction
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a very large set of data of over 1000 readings in [A]. I need to reduce the data to 101 readings evenly spaced over the original data set. Can anyone give me some help, or point me in the right direction? Any help would be much appreciated.
댓글 수: 0
채택된 답변
Matt Fig
2011년 3월 29일
If DAT is your original data.
NewDAT = DAT(round(linspace(1,length(DAT),101)))
댓글 수: 3
Matt Tearle
2011년 3월 29일
NewDAT = DAT(round(linspace(1,length(DAT),101)),:)
Indexing in MATLAB is A(row,column). Using : in place of column gives all columns (for the specified rows).
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!