limit webread to certain lines
3 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 JSON Format 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!