How to read a string character by character?

4 次查看(过去 30 天)
I have a file name as CCTV03x456x1658.avi. And i want to read only 'CCTV03x456x1658' before the '.avi' and exclude the '.avi part. How can I achieve this?

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-8-23
s='CCTV03x456x1658.avi'
s=s(1:strfind(s,'.')-1)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Import and Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by