How to read a string character by character?

1 Ansicht (letzte 30 Tage)
Febin Benjamin
Febin Benjamin am 23 Aug. 2013
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?

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by