hello, i have 2d matrix for example:
X = [0 0 0 0 0; 1 1 1 1 1; 0 1 2 1 0; 1 1 1 1 1; 0 0 0 0 0]
i want to get closest index of columns and rows between value 2 and 0. Is there any chance to do this??
Regards
2d matrixclosestcoordinatefunctionMATLABpoint
X = [0 0 0 0 0; 1 1 1 1 1; 0 1 2 1 0; 1 1 1 1 1; 0 0 0 0 0]
Best Answer