Nice one-liner regexprep with skillful reading of the input string format. The processing and output string creation is an efficient marvel.
115 Solvers
Get the elements of diagonal and antidiagonal for any m-by-n matrix
267 Solvers
Create incremental spiral WITHOUT USING EVAL or FEVAL
39 Solvers
123 Solvers
41 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!