how do i extract every 10th column from a matrix

using selectcolumn

댓글 수: 1

@David Craven: what is selectcolumn ?
Why not use very simple and efficient indexing?

댓글을 달려면 로그인하십시오.

답변 (1개)

Star Strider
Star Strider 2017년 9월 5일

0 개 추천

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’.

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2017년 9월 5일

댓글:

2017년 9월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by