フィルターのクリア

Getting data from a .CSV that is constantly overwritten

4 ビュー (過去 30 日間)
NeGM
NeGM 2023 年 4 月 28 日
コメント済み: NeGM 2023 年 5 月 3 日
I am currently using the function "readmatrix('')" to obtain data from a .CSV file. This .CSV file will be overwritten periodically and I would like to to automatically read this new data from the overwritten .CSV file when the new file is obtained. My questions is, should I run a while loop and obtain the new data as it comes or is there a function that would automatically run my code every 2 minutes or so such that the readmatrix function reads the newly overwritten file every time? I will be saving the data every time in a cell array. Thank you in advance!

回答 (1 件)

Walter Roberson
Walter Roberson 2023 年 4 月 28 日
Would this happen to be on Windows? If so then see https://www.mathworks.com/matlabcentral/answers/370476-file-watcher-for-continuous-running-program#answer_294593 about filesystem watcher

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by