How to open .SRT files?
이전 댓글 표시
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
Rik
2020년 12월 5일
I only know srt as a subtitle format, which I a plain text format. Do you have a description of the format?
Ivan Mich
2020년 12월 5일
Rik
2020년 12월 5일
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
2020년 12월 5일
답변 (1개)
Cris LaPierre
2020년 12월 5일
댓글 수: 5
Ivan Mich
2020년 12월 5일
Cris LaPierre
2020년 12월 5일
Share your file. Attach it using the paperclip icon.
Cris LaPierre
2020년 12월 5일
편집: Cris LaPierre
2020년 12월 5일
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
2020년 12월 6일
Cris LaPierre
2020년 12월 6일
Attach the file or we can't do much more to help you.
카테고리
도움말 센터 및 File Exchange에서 Text Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!