This solution is outdated. To rescore this solution, sign in.
-
2 Comments
Marcel
on 8 Jan 2014
Nice solution, I overlooked the potential usage of ind2sub.
J.R.! Menzinger
on 9 Jan 2014
You should use 'varargin' here ;-)
take a look: http://www.mathworks.de/matlabcentral/cody/problems/2091-return-row-and-column-indices-given-2-values-which-define-a-range/solutions/382339
Suggested Problems
-
1765 Solvers
-
617 Solvers
-
middleAsColumn: Return all but first and last element as a column vector
614 Solvers
-
Permute diagonal and antidiagonal
468 Solvers
-
72 Solvers
More from this Author10
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!