我正在尝试使一些代码更高效,并且想知道如何对其进行矢量化:
%==========================================================================
% MinutesInDayTable.m
%
% Creates a table identifying every minute as an integer from 0 to 2400.
minuteTableInDay=zeros(24*60,1);
k=1;
for i=1:24
for j=1:60
minuteTableInDay(k) = ((i-1)*100+(j-1))*100;
k=k+1;
end
end
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ end of code ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~