gpt4 book ai didi

matlab - 错误 : 'You must call TIC without an output argument before calling TOC without an input argument.'

转载 作者:太空宇宙 更新时间:2023-11-03 20:16:47 26 4
gpt4 key购买 nike

我在运行我的 gui 时遇到这个错误,我不明白它的含义以及如何修复它...有什么想法吗?

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

最佳答案

您可以通过以下方式使用tic/toc:

% tic without output argument
tic;
rand(10);
% toc without input argument
te=toc;

% tic with output argument
ts=tic;
rand(10);
% toc with input argument
te=toc(ts);

以上场景不能混用,例如

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.

关于matlab - 错误 : 'You must call TIC without an output argument before calling TOC without an input argument.' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12900299/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com