How to open .SRT files?
Afficher commentaires plus anciens
Hello,
I have a question. How to open .SRT data file. ? I have columns and rows in this file.
I tried fopen or readtable but it is no use.
Could you help me?
4 commentaires
Rik
le 5 Déc 2020
I only know srt as a subtitle format, which I a plain text format. Do you have a description of the format?
Ivan Mich
le 5 Déc 2020
Rik
le 5 Déc 2020
You will have to post an example if you want help. What have you tried so far yourself? You can start by reading the file to a Matlab variable as text. What would be your next step?
Ivan Mich
le 5 Déc 2020
Réponses (1)
Cris LaPierre
le 5 Déc 2020
5 commentaires
Ivan Mich
le 5 Déc 2020
Cris LaPierre
le 5 Déc 2020
Share your file. Attach it using the paperclip icon.
Cris LaPierre
le 5 Déc 2020
Modifié(e) : Cris LaPierre
le 5 Déc 2020
I created an SRT file using the snippet you shared above. I saw the same error message, but it tells you what to do in order to use readtable on an unrecognized file type. Doing so loads my sample file as expected.
SRT = readtable("test.SRT","FileType","text")

Ivan Mich
le 6 Déc 2020
Cris LaPierre
le 6 Déc 2020
Attach the file or we can't do much more to help you.
Catégories
En savoir plus sur Text Data Preparation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!