필터 지우기
필터 지우기

limit webread to certain lines

조회 수: 3 (최근 30일)
Pete
Pete 2017년 2월 8일
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개)

카테고리

Help CenterFile Exchange에서 JSON Format에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by