我已经按照网上的教程构建了一个iMessage应用程序。现在我想检测被点击的贴纸索引。在disp('-------SPDIAGS-SPARSE----')
tic
spdiags(repmat(1:4,8000,1),0:3,8000,8000);
toc
disp('-------SPDIAGS-DENSE-----')
tic
full(spdiags(repmat(1:4,8000,1),0:3,8000,8000));
toc
disp('-------CONV2----------=--')
tic
tmp = conv2(1:4, eye(8000));
output = tmp(:, 1:8000);
toc
中是否有像didselect这样的函数?
-------SPDIAGS-SPARSE----
Elapsed time is 0.005831 seconds.
-------SPDIAGS-DENSE-----
Elapsed time is 0.265963 seconds.
-------CONV2----------=--
Elapsed time is 1.6433 seconds.