フィルターのクリア

How to taking other element in nth column?

11 ビュー (過去 30 日間)
AnhThu Le
AnhThu Le 2017 年 8 月 31 日
回答済み: KSSV 2017 年 8 月 31 日
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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by