필터 지우기
필터 지우기

How to read a string character by character?

조회 수: 2 (최근 30일)
Febin Benjamin
Febin Benjamin 2013년 8월 23일
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에서 Import, Export, and Conversion에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by