I tried with strrep and it worked but I had to replace every single value like this: A1=strrep(A,'a','xxx') A2=strrep(A1,'bb','yy') A3=strrep(A2,'ccc','z')
For sure there is a smarter way...
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!