double
int
uint
time: double = int < uint8
较为神奇。
clear
clc time=clock; a=zeros(,);
for i=:
a(i)=;
end fprintf('time=%f',etime(clock,time));
1s 1s 1.5s
double
int
uint
time: double = int < uint8
较为神奇。
clear
clc time=clock; a=zeros(,);
for i=:
a(i)=;
end fprintf('time=%f',etime(clock,time));
1s 1s 1.5s