How can I choose a set of columns from my table. I have to get the means of let's say columns 1 and 5, columns 2 and 6 etc from 20 columns. Thanks
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Abdullah Al Jaja
il 26 Mag 2017
Commentato: Abdullah Al Jaja
il 26 Mag 2017
Does this look like a correct line of code? x = mean(w(:,[1:4:10 11:4:20]));
0 Commenti
Risposta accettata
Sadik
il 26 Mag 2017
Looks correct. Means of columns 1 and 5, for instance, would look like this:
x = mean(w(:,[1 5]))
Best.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical 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!