Let's assume:
R = [1 2 3; ...
4 5 6; ...
7 8 9; ...
];
How I can pick* only three members from it: R(1,1)
, R(1,3)
and R(3,3)
It means I am looking for
B =
1
7
9
Please bear in mind that B = [R(1,1), R(1,3), R(3,3)]
or "loop" solution is not the answer as I need to do it for a large data. So, preferably using indexing solution. Thanks
- The rule (condition) for picking the member is:
R(i,j)
thati = [ 1, 3, 3]
andj = [1 , 1 , 3]
;