Selecting part of a string
Ältere Kommentare anzeigen
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 Kommentare
Gerd
am 14 Jun. 2011
Hi Matt,
is your file_name variable just one string like
file_name = ['a.txt' 'b.txt' 'c.txt' 'd.txt']?
Matt
am 14 Jun. 2011
Paulo Silva
am 14 Jun. 2011
You say 4 rows and 1 column but your example is 4 columns and 1 row
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!