A=100000x1 made of numbers <3000 : A=[2345,123,4000, etc...]
B=5000x100000 an array of numbers given;
Select A out of B(:,1) for each of 100000 columns.
i.e., make a new cell array out of B picking out 2345x100000; 123x100000; 4000x100000 etc elements
Thanks
3 Comments
Direct link to this comment
https://it.mathworks.com/matlabcentral/answers/426703-selecting-arbitrary-sequence-of-rows-from-a-matrix#comment_629672
Direct link to this comment
https://it.mathworks.com/matlabcentral/answers/426703-selecting-arbitrary-sequence-of-rows-from-a-matrix#comment_629672
Direct link to this comment
https://it.mathworks.com/matlabcentral/answers/426703-selecting-arbitrary-sequence-of-rows-from-a-matrix#comment_629683
Direct link to this comment
https://it.mathworks.com/matlabcentral/answers/426703-selecting-arbitrary-sequence-of-rows-from-a-matrix#comment_629683
Direct link to this comment
https://it.mathworks.com/matlabcentral/answers/426703-selecting-arbitrary-sequence-of-rows-from-a-matrix#comment_629885
Direct link to this comment
https://it.mathworks.com/matlabcentral/answers/426703-selecting-arbitrary-sequence-of-rows-from-a-matrix#comment_629885
Sign in to comment.