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.
6781 Solvers
random picture with random colours
138 Solvers
97 Solvers
Remove from a 2-D matrix all the rows that contain at least one element less than or equal to 4
141 Solvers
Given a matrix, return the last eigen value
177 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!