回答 (1 件)

Akshat
Akshat 2024 年 11 月 24 日

0 投票

You can run an infinite loop which pauses every three seconds and reads the data from an XLS file.
You can modify the following code to suit your use case the best:
fileName = 'data.xlsx'; % or 'data.ods'
sheetName = 'Sheet1';
while true
try
data = readtable(fileName, 'Sheet', sheetName);
disp(data);
catch ME
disp(['Error reading file: ', ME.message]);
end
pause(3);
end
Feel free to ask any follow-ups, hope this helps!

カテゴリ

ヘルプ センター および File ExchangeProgramming についてさらに検索

製品

リリース

R2018b

タグ

回答済み:

2024 年 11 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by