Given a three dimensional array M(m,n,p) write a code that finds the three coordinates x,y,z of the Maximum value.
Example :
The input is F :
F=zeros(4,4,4); F(2,2,2)=10;
The output is
b=[2 2 2] % the coordinates
The test suite has been expanded.
sorry, this is cheating.
1057 Solvers
747 Solvers
Back to basics 6 - Column Vector
809 Solvers
Sum the elements in either diagonal of a square matrix
145 Solvers
205 Solvers