how to split value in a cell
1 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
Azzi Abdelmalek
2014-1-16
编辑:Azzi Abdelmalek
2014-1-16
v={'SAMPLE20130101_1101.txt'
'SAMPLE20130101_1101.txt'
'SAMPLE20130101_1101.txt'}
out=strrep(v,'.txt','')
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Web Services 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!