Matrix reduction
1 回表示 (過去 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 で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!