Separate row indices of a Matrix in two groups

조회 수: 1 (최근 30일)
pankaj singh
pankaj singh 2020년 12월 3일
댓글: pankaj singh 2020년 12월 3일
Hello~
I have 256 x 256 matrix. In this matrix, I have chose some row indices (& all columns) as my pilot locations. Now, how to choose rest of the rows as data location.
e.g. > main_matrix= randi([0,10],256);
pilot_loc= (1:N:256); % N is a variable.
data_loc=???
How to put rest of the row indices in data_loc? I hope you understand.

채택된 답변

KSSV
KSSV 2020년 12월 3일
pilot_loc= (1:N:256); % N is a variable.
data_loc = setdiff(1:256,polot_loc) ;

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by