How to taking other element in nth column?

7 visualizaciones (últimos 30 días)
AnhThu Le
AnhThu Le el 31 de Ag. de 2017
Respondida: KSSV el 31 de Ag. de 2017
extract the variablefrom an 88x6 matrice ? Every other element in the fifth column How can I co

Respuestas (1)

KSSV
KSSV el 31 de Ag. de 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) ;

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by