test_ita_Super.m 464 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
function test_ita_Super()
%Test itaSuper

% <ITA-Toolbox>
% This file is part of the ITA-Toolbox. Some rights reserved. 
% You can find the license for this m-file in the license.txt file in the ITA-Toolbox folder. 
% </ITA-Toolbox>


a = itaSuper([100 1],1); %Create 100x100 itaSupers with 1 data-elem
b = itaSuper([100 1],1);

tic
for idx = 1:numel(a)
    a(idx).data = 1;
end
t1 = toc;

tic
for idx = 1:numel(b)
    b(idx).data = 1;
end
t2 = toc;

disp(t2/t1);