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.
Find the sum of all the numbers of the input vector
31954 Solvers
Read a column of numbers and interpolate missing data
1235 Solvers
284 Solvers
Elapsed time is -0.005204 seconds.
96 Solvers
Find out missing number from a vector of 9 elements
245 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!