file name extraction from load file
14 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Akhtar Rind
am 3 Jul. 2020
Kommentiert: Akhtar Rind
am 4 Jul. 2020
I have load data file to extract data and plots.
A typical file name would be '01_02_20_Cu_1.csv' and I use this as
A1= readcell('01_02_20_Cu_1.csv');
How can I get file name "01_02_20_Cu_1" from load data file as text format?
0 Kommentare
Akzeptierte Antwort
Kawin Kumaran
am 3 Jul. 2020
fileparts() function can be used to extract file name .
file = '01_02_20_Cu_1.csv';
[~,name,~] = fileparts(file)
The result will be :
name : '01_02_20_Cu_1'
Please refer the following documentation for more information .
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Import and Export finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!