フィルターのクリア

how do i extract every 10th column from a matrix

3 ビュー (過去 30 日間)
David Craven
David Craven 2017 年 9 月 5 日
コメント済み: Stephen23 2017 年 9 月 5 日
using selectcolumn
  1 件のコメント
Stephen23
Stephen23 2017 年 9 月 5 日
@David Craven: what is selectcolumn ?
Why not use very simple and efficient indexing?

サインインしてコメントする。

回答 (1 件)

Star Strider
Star Strider 2017 年 9 月 5 日
I can’t find a ‘selectcolumn’ function in the online documentation or the File Exchange.
If ‘M’ is your matrix, either:
Out = M(:,[1 10:10:end]);
or:
Out = M(:,1:10:end);
depending on how you define ‘every 10th column’.

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by