read name of csv-file and save as output

2 ビュー (過去 30 日間)
Mariska Kret
Mariska Kret 2011 年 6 月 30 日
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

採用された回答

Gerd
Gerd 2011 年 6 月 30 日
HI Mariska,
use [PATHSTR,NAME,EXT] = FILEPARTS(FILE)
to get the results
Gerd

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT-Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by