How to read a string character by character?

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일

1 개 추천

s='CCTV03x456x1658.avi'
s=s(1:strfind(s,'.')-1)

추가 답변 (0개)

카테고리

Community Treasure Hunt

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

Start Hunting!

Translated by