Filter löschen
Filter löschen

how do i extract every 10th column from a matrix

3 Ansichten (letzte 30 Tage)
David Craven
David Craven am 5 Sep. 2017
Kommentiert: Stephen23 am 5 Sep. 2017
using selectcolumn
  1 Kommentar
Stephen23
Stephen23 am 5 Sep. 2017
@David Craven: what is selectcolumn ?
Why not use very simple and efficient indexing?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Star Strider
Star Strider am 5 Sep. 2017
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’.

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by