reverse operation to 'strsplit'

6 次查看(过去 30 天)
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 个评论
Stephen23
Stephen23 2024-1-21
编辑:Stephen23 2024-1-21
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.

请先登录,再进行评论。

采纳的回答

Dyuman Joshi
Dyuman Joshi 2024-1-21

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by