What is the equivalent of "millis()" and "micros()" in MATLAB?

31 ビュー (過去 30 日間)
Xolani Gumbi
Xolani Gumbi 2021 年 10 月 21 日
回答済み: Alamanda Ponappa Poovaya 2021 年 11 月 1 日
I am using the MATLAB Support Package for Arduino Hardware to program an Arduino Mega. I ran the code on the Arduino IDE, and it worked perfectly. While translating to Matlab I could not find the equivalent of "millis()" and "micros()". Please help!

回答 (1 件)

Alamanda Ponappa Poovaya
Alamanda Ponappa Poovaya 2021 年 11 月 1 日
There is no direct equivalent to millis() and micros() in MATLAB, however you can use tic and toc as a work around.
Please refer to the link below, it appears to describe your issue. The work around suggested there should apply to your case as well

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by