Selecting part of a string
Mostrar comentarios más antiguos
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 comentarios
Gerd
el 14 de Jun. de 2011
Hi Matt,
is your file_name variable just one string like
file_name = ['a.txt' 'b.txt' 'c.txt' 'd.txt']?
Matt
el 14 de Jun. de 2011
Paulo Silva
el 14 de Jun. de 2011
You say 4 rows and 1 column but your example is 4 columns and 1 row
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!