I have an MxN matrix A. I can find the minimum of values in each column of A by: [Amin imin]=min(A(1:end),:) where imin is the line index of the minimum in each column (imin=[1 4 2 2 4 5 4 4] in example below). This way I get the array imin that contains these line indices. Now I want to find the equivalents of these elemts in another MxN matrix B (red boxes in picture below) and create a new vector V in the form: V= [B11 B42 B23 B24 B45 B56 B47 B48]
MATLAB: Creating vector from another vector containing 2×2 matrix indices
arrays
Related Question
- Apply the min index to an array of the same size
- Trim Matrix and find the min-max value the reshaped matrix
- Matrix indexing without loop
- Get the max value and the indices of max value across a series of matrices
- Undefined function or variable ‘assume’, is it possible that the ‘assume’ function has been removed
Best Answer