what does this error with tic\toc means?
14 ビュー (過去 30 日間)
古いコメントを表示
i have this problem - matlab tells me I have an error while running-
Error using toc
You must call TIC without an output argument before calling TOC without an
input argument.
Error in hand_rotation2/youPress (line 126)
c = toc;
Error while evaluating figure KeyPressFcn
what does it mean, and how can I fix it?
0 件のコメント
採用された回答
Wayne King
2012 年 10 月 15 日
編集済み: Wayne King
2012 年 10 月 15 日
It means to use toc, you have to call tic first somewhere
tic;
for ii = 1:10
x(ii) = ii+1;
end
y = toc;
If you use toc by itself, it must have been preceded by a tic command sometime during the current session, then it gives the time since the most recent tic command. In this latter case, that is probably not what you want.
2 件のコメント
その他の回答 (1 件)
Nicolas Rodriguez
2016 年 1 月 8 日
I have the same problem. My code runs as long as I keep matlab open. Once I close it, it won't let me run it and show me error
参考
カテゴリ
Help Center および File Exchange で Performance and Memory についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!