How to taking other element in nth column?

5 visualizzazioni (ultimi 30 giorni)
AnhThu Le
AnhThu Le il 31 Ago 2017
Risposto: KSSV il 31 Ago 2017
extract the variablefrom an 88x6 matrice ? Every other element in the fifth column How can I co

Risposte (1)

KSSV
KSSV il 31 Ago 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) ;

Categorie

Scopri di più su Creating and Concatenating Matrices 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!

Translated by