It would be good if Cody penalized huge strings. :)
Solution uses regexprep with dynamic operators for the replacement expression which outsmarts Cody's size calculation.
This is just silly. It's gaming the Matlab grader, and not doing a particularly good job at that. Why should this stop at 3999?
Very nicely done.
Find the numeric mean of the prime numbers in a matrix.
6828 Solvers
Omit columns averages from a matrix
530 Solvers
292 Solvers
Sum of first n terms of a harmonic progression
262 Solvers
Rotate input square matrix 90 degrees CCW without rot90
385 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!