Modify Strings in cell array
Show older comments
Hi,
I have a cell array:
b = { 'a/b/c/a'; 'k/b' ; 'c/c/d' }
I want to remove the string before the first slash.
The result should be:
b = { 'b/c/a'; 'b' ; 'c/d' }
How can I achieve the result?
1 Comment
Kevin Phung
on 3 Apr 2019
Edited: Kevin Phung
on 3 Apr 2019
is this the same as removing just the first 2 characters?
Accepted Answer
More Answers (1)
Olaf Oelsner
on 4 Apr 2019
0 votes
Categories
Find more on Characters and Strings 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!