limit webread to certain lines

1 Ansicht (letzte 30 Tage)
Pete
Pete am 8 Feb. 2017
I need to read sensor data from a .csv file wich is located on a server and periodically updated. I use webread('url') for this and this basically works fine. The problem is, that the file is growing with time and slows down my script because I have to copy the whole file every time I read data. Therefore, I would like to know if there is an option to limit the reading procedure to certain lines (e.g., the last 100 lines) like it would be possible using 'csvread' or 'dlmread'. Is there an option to do this using 'webread'?
In the documentation I just found one hint but I am not sure if this would solve my problem as I am not sure how to use the function in that constellation. Using the 'webotions' command I can specify a 'ContentReader' (Example: weboptions('ContentReader',@readtable)). Could I specify something like weboptions('ContentReader',@csvread(options))?
Thank you for your suggestions
Peter

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by