How to read a string character by character?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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?
0 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 23 de Ag. de 2013
s='CCTV03x456x1658.avi'
s=s(1:strfind(s,'.')-1)
1 comentario
Azzi Abdelmalek
el 23 de Ag. de 2013
%or
s=regexp(s,'[\w\s]+(?=.avi)','match')
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Import and Analysis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!