Selecting part of a string
古いコメントを表示
I have a list of file names in a variable called file_name e.g:
[a.txt b.txt c.txt d.txt]
I would like to create a new variable which only contains:
[a b c d]
Is this possible?
Thanks in advance Matt
3 件のコメント
Gerd
2011 年 6 月 14 日
Hi Matt,
is your file_name variable just one string like
file_name = ['a.txt' 'b.txt' 'c.txt' 'd.txt']?
Matt
2011 年 6 月 14 日
Paulo Silva
2011 年 6 月 14 日
You say 4 rows and 1 column but your example is 4 columns and 1 row
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Characters and Strings についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!