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.
Equidistant numbers containing certain value in an interval
83 Solvers
Make an awesome ramp for a tiny motorcycle stuntman
341 Solvers
Find the largest value in the 3D matrix
1080 Solvers
88 Solvers
Calculate the Hamming distance between two strings
180 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!