Azzera filtri
Azzera filtri

How to read a string character by character?

2 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Data Import and Analysis in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by