read name of csv-file and save as output

2 visualizaciones (últimos 30 días)
Mariska Kret
Mariska Kret el 30 de Jun. de 2011
Hi,
I would like to save the name of a textfile as one of the output variables. The name consists of both text and numbers (.csv). How can I do this?
best wishes, Mariska

Respuesta aceptada

Gerd
Gerd el 30 de Jun. de 2011
HI Mariska,
use [PATHSTR,NAME,EXT] = FILEPARTS(FILE)
to get the results
Gerd

Más respuestas (0)

Categorías

Más información sobre Workspace Variables and MAT-Files en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by