How to taking other element in nth column?

6 次查看(过去 30 天)
extract the variablefrom an 88x6 matrice ? Every other element in the fifth column How can I co

回答(1 个)

KSSV
KSSV 2017-8-31
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) ;

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by