how do i extract every 10th column from a matrix
    4 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
using selectcolumn
1 Commento
  Stephen23
      
      
 il 5 Set 2017
				@David Craven: what is selectcolumn ?
Why not use very simple and efficient indexing?
Risposte (1)
  Star Strider
      
      
 il 5 Set 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’.
0 Commenti
Vedere anche
Categorie
				Scopri di più su Language Fundamentals in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


