how to convert text values between char arrays
Show older comments
Hi everybody,
I have a char/cell array like this A=['a';'bb';'ccc';'a';'ccc';'ccc';'bb'] and I want a new char/cell array like this B['xxx';'yy';'z';'xxx';'z';'z';'yy'], where 'a'='xxx', 'bb'='yy' and 'ccc'='z', How can I get this score? This is just an exemple, imagine that my A array is a char array 86x5 or bigger.
Thanks a lot.
1 Comment
giovanni negro
on 29 Jan 2018
Answers (1)
Harish Ramachandran
on 2 Feb 2018
0 votes
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!