I am novice in Matlab . I'm trying hard to load a log file (that too, from specific line number to specific line number ) into Matlab and store that data in it into a variable.

2 views (last 30 days)
2021-02-26 20:25:35,293 Generated bitstream: 1111000000110010001001111101001101010111101100001001010111110000111010001111111111001110100100011111111110110000011001110000011010011101000010111110111001110111101001110010111010110000101101001111001000001110010110010001001111000110000010000001100000100001001011010010001000001001001010000100101111111111000111101111001010001101011111000010010011111010100001000001100100000001011000011011000100100000110001101010001100001100110111000110110010101011100001111101011011001010101101010000100101101010110101110001001101001010010001110000010010111010011001101100010100001010100110111011111101000110000001011011011011011110101100100011000000011011010110110001001011110000000100110110111110000110110100110100000100101001100010110011101001001000101100111100001100000011000001111010100001101101010111111101100001101100001110011011000101111010000000110010111111101011001110001100111000110010101010100110111000110011101101111101001010111011100000010100000101001100100111101000100001111101110110111101111001000011
2021-02-26 20:25:35,294 Starting Transmission
2021-02-26 20:25:35,305 Transmitted: 1
2021-02-26 20:25:36,307 Transmitted: 1
2021-02-26 20:25:37,308 Transmitted: 1
2021-02-26 20:25:38,310 Transmitted: 1
2021-02-26 20:25:39,311 Transmitted: 0
2021-02-26 20:25:40,313 Transmitted: 0
2021-02-26 20:25:41,314 Transmitted: 0
2021-02-26 21:54:33,302 Transmitted: 1
2021-02-26 21:54:33,369 Transmitted: 0
2021-02-26 21:54:33,436 Transmitted: 0
2021-02-26 21:54:33,503 Transmitted: 0
2021-02-26 21:54:33,570 Transmisssion Ended
I am currently working on a vlc project where I need to analyze the transmitted data sent using LED and recived data using camera. My requirement is to analyze frames from the video within specific intervals of time.
Every digit after the bitstream: in the log file is the transmitted bits
21:54:33,302 ( Hours : Minutes : Seconds, milli-seconds ) in the above log files is the exact time in which the bit is transmitted.
I need some pointers or suggestions to do:
  1. Loading log file to matlab code
  2. Loading the bitstream which was used in tranmission to a variable
  3. How to analyze frames between specific time intervals
  4. How to use information in the logfile to specify the time intervals
Any inputs from the community will be extremely helpful.

Answers (1)

Asvin Kumar
Asvin Kumar on 25 Jun 2021
You can use the Import Tool to read data from your log file.
You can read the data into a table. You can then convert the table into a timetable object. You can see more articles on how to use these objects under the "Topics" section of each page.

Community Treasure Hunt

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

Start Hunting!