hi...i have variable a() as 1x3 cell..inside this..i have
SAMPLE20130101_1101.txt
SAMPLE20130101_1101.txt
SAMPLE20130101_1101.txt
i need to split this to remove file extension(.txt) and save to a variable as
SAMPLE20130101_1101
SAMPLE20130101_1101
SAMPLE20130101_1101
any help?

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 16 Jan. 2014
Bearbeitet: Azzi Abdelmalek am 16 Jan. 2014

0 Stimmen

v={'SAMPLE20130101_1101.txt'
'SAMPLE20130101_1101.txt'
'SAMPLE20130101_1101.txt'}
out=strrep(v,'.txt','')

Weitere Antworten (0)

Kategorien

Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 16 Jan. 2014

Kommentiert:

am 16 Jan. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by