reverse operation to 'strsplit'

11 views (last 30 days)
Alberto Acri
Alberto Acri on 21 Jan 2024
Edited: Stephen23 on 21 Jan 2024
Hi! I have a cell like 'temp'. And I need to transform it (by adding '_') to get a char like 'a'. How can this be generated?
a = 'test_4_AA_5.txt';
temp = strsplit(a,'_');
  1 Comment
Stephen23
Stephen23 on 21 Jan 2024
Edited: Stephen23 on 21 Jan 2024
You have been using this forum since 2020... now would be a good time to learn to use the MATLAB documentation: scroll to the bottom of the STRSPLIT documentation to find links to articles and related functions (e.g. STRJOIN).
Looking at the documentation of the function you are already using is easy and a good place to start solving your own questions.

Sign in to comment.

Accepted Answer

Dyuman Joshi
Dyuman Joshi on 21 Jan 2024

More Answers (0)

Categories

Find more on Characters and Strings in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!