MATLAB: Read name of csv-file and save as output

csvfilenameoutput

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

Best Answer

HI Mariska,
use [PATHSTR,NAME,EXT] = FILEPARTS(FILE)
to get the results
Gerd
Related Question