I have this error while running my gui and I don't understand what it means and how to fix it... any ideas?
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
You can use tic/toc
in the following ways:
% tic without output argument
tic;
rand(10);
% toc without input argument
te=toc;
or
% tic with output argument
ts=tic;
rand(10);
% toc with input argument
te=toc(ts);
You can not mix the above scenarios, e.g.,
ts=tic;
rand(10);
te=toc; % wrong! toc must be called as toc(ts)
Error using toc
You must call TIC without an output argument before calling TOC without an input
argument.
You are using tic / toc matlab functions, these are used for measuring times. The message is telling you that toc is calling without previously tic calling, you can either remove line 126 or invoking tic firstly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With