How can I export the "elapsed time" (tic-toc result) to excel?

13 ビュー (過去 30 日間)
Marina
Marina 2014 年 8 月 23 日
編集済み: Star Strider 2014 年 8 月 23 日
I have run a function, and I have exported with xlswrite all the variables in excel. Now I want to export in Excel the elapsed time (the result of tic-toc). How can I do that?

回答 (1 件)

Star Strider
Star Strider 2014 年 8 月 23 日
編集済み: Star Strider 2014 年 8 月 23 日
With an output argument, toc will store the elapsed time.
Example:
tic
pause(1.5)
et = toc
You can then write the value of the output ( ‘et’ here ) to Excel just as you would any other value.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by