Problem 43280. Replace x value into y value in string text.
Solution Stats
Problem Comments
-
2 Comments
Jean-Marie Sainthillier
on 10 Oct 2016
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 ?
Jean-Marie Sainthillier
on 14 Oct 2016
regexprep doesn't modify directly str
For example :
str='Jean'
regexprep(str,'e','a')
ans='Jaan'
but str is always = 'Jean'
Solution Comments
-
1 Comment
auto2060
on 30 Oct 2016
Well this is a function in R2016b.No wonder no others have used it.
Problem Recent Solvers49
Suggested Problems
-
Find the largest value in the 3D matrix
1244 Solvers
-
577 Solvers
-
592 Solvers
-
289 Solvers
-
Set x value to each even index of vector y.
58 Solvers
More from this Author37
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!