How to taking other element in nth column?
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
extract the variablefrom an 88x6 matrice ? Every other element in the fifth column How can I co
0 commentaires
Réponses (1)
KSSV
le 31 Août 2017
A = rand(88,6) ; % A random data matrix
% Extracting 4th column alternate element
B = A(1:2:end,4) ;
% Extracting fourth complete column
C = A(:,4) ;
Read about matrix indexing first: https://in.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html
0 commentaires
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!