how to split value in a cell

5 vues (au cours des 30 derniers jours)
sandy
sandy le 16 Jan 2014
Commenté : sandy le 16 Jan 2014
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?

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 16 Jan 2014
Modifié(e) : Azzi Abdelmalek le 16 Jan 2014
v={'SAMPLE20130101_1101.txt'
'SAMPLE20130101_1101.txt'
'SAMPLE20130101_1101.txt'}
out=strrep(v,'.txt','')
  1 commentaire
sandy
sandy le 16 Jan 2014

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Characters and Strings dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by