MATLAB: How to get coordinates of number in a matrix MATLABmatrix Hello. I'd like to get x and y coordinates of number in matrix: 00000 00100 00000 Number = 1 x = 3 y = 2 Thanks. Best Answer a =[0 0 0 0 0 0 0 1 0 0 0 0 0 0 0];[y,x] = find(a) Related SolutionsMATLAB: How to create a surface object from the input of complex numbers surf(x,t,real(u));orsurf(x,t,imag(u));orsurf(x,t,abs(u));orsurf(x,t,real(u));hold onsurf(x,t,imag(u));There are other possibilities, but you need to describe your thinking about what you would like the display to be considering the 2D nature of complex values. MATLAB: Finding coordinates or locations in matrix [row,col] = find(...) Related QuestionMatlab: trasform cell arrays into a matrixHow to get X and Y coordinates from a Sparse MatrixReplacing Matrix Cells with Date ValuesFinding coordinates of a numberHow can i allocate results in matrix with for loopHow to find X and Y coordinates of a matrix
Best Answer