Check this code
S = rand(20);
selected_stores = [4, 6, 9, 13, 17];
idx1 = selected_stores;
idx2 = setdiff(1:size(S,1), selected_stores);
M1 = S(idx1, idx1); % 5x5
M2 = S(idx2, idx2); % 15x15
Info
此问题已关闭。 请重新打开它进行编辑或回答。
此问题已关闭。
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!