Filter löschen
Filter löschen

Separate row indices of a Matrix in two groups

3 Ansichten (letzte 30 Tage)
pankaj singh
pankaj singh am 3 Dez. 2020
Kommentiert: pankaj singh am 3 Dez. 2020
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.

Akzeptierte Antwort

KSSV
KSSV am 3 Dez. 2020
pilot_loc= (1:N:256); % N is a variable.
data_loc = setdiff(1:256,polot_loc) ;

Weitere Antworten (0)

Kategorien

Mehr zu Data Types finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by