suprisingly, this code doesn't work in previous versions of MATLAB. Looks like things under the mask of regexprep changed. Previous policy was [match1][match2]...[matchN][replace1][replace2]...[replaceN] while now it's more like [match1][replace1]...[matchN][replaceN]
This code works in previous versions of MATLAB, but not in current one. See comment 6791.
550 Solvers
468 Solvers
Least common multiple of many numbers
159 Solvers
Project Euler: Problem 9, Pythagorean numbers
157 Solvers
Sum of first n terms of a harmonic progression
188 Solvers