For Loop for storing data
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
How would I write a for loop to extract columns from a large matrix and put it into a new matrix. For example, I want to take every 6th column of my very large matrix and store it in a new matrix.
Thanks!
0 Kommentare
Antworten (1)
James Tursa
am 12 Nov. 2016
Bearbeitet: James Tursa
am 12 Nov. 2016
No loop needed:
a = your very large matrix
b = a(:,1:6:end); % every 6th column, starting with 1st column
0 Kommentare
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements 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!