how to split value in a cell

5 ビュー (過去 30 日間)
sandy
sandy 2014 年 1 月 16 日
コメント済み: sandy 2014 年 1 月 16 日
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?

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 1 月 16 日
編集済み: Azzi Abdelmalek 2014 年 1 月 16 日
v={'SAMPLE20130101_1101.txt'
'SAMPLE20130101_1101.txt'
'SAMPLE20130101_1101.txt'}
out=strrep(v,'.txt','')
  1 件のコメント
sandy
sandy 2014 年 1 月 16 日

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by