So we can use the ans trick again ?
But we can't use something like :
function text = Replace(text,x,y)
tructruc(text,x,y)
Strange no ?
regexprep doesn't modify directly str
For example :
str='Jean'
regexprep(str,'e','a')
ans='Jaan'
but str is always = 'Jean'
Well this is a function in R2016b.No wonder no others have used it.
320 Solvers
Given a window, how many subsets of a vector sum positive
755 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3918 Solvers
Given a matrix, swap the 2nd & 3rd columns
535 Solvers
262 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!