matlab怎么样知道执行一个命令花了多少时间

比如两个很大的matrix相乘 。
我想看看这个计算用了多少时间
能给的再详细些吗?
我刚接触matlab比如这个程序怎么自动运行 。
我在MATLAB 命令窗口出入 tic A*B toc,显示 too many arguments....

第1个回答  2009-10-04
>> tic
>> 2*4^23;toc
Elapsed time is .
上面显示时间为15.072349 seconds
第2个回答  2009-10-04
tic
你要执行的命令
toc本回答被提问者采纳
第3个回答  2009-10-05
tic;
A * B;
tAtimesB = toc;
第4个回答  2009-10-04
tic
a*b;
toc
相似回答