function [ outcell] = methodcompcell( addmat,outcell)
%UNTITLED4 Summary of this function goes here
%   Detailed explanation goes here
% outmat(1:length(nin),2:3)=0;
% outmat(:,1)=nin;
for i=1:10
    for k=1:addmat(i,1)
        tic;
        qsearch(i,'pu');
        outcell{i,1}=[outcell{i,1},toc];
%         outmat(i,1,1)=(outmat(i,1,1)*outmat(i,1,2)+toc)/(outmat(i,1,2)+1);
%         outmat(i,1,2)=outmat(i,1,2)+1;
    end
    for k=1:addmat(i,2)
        tic;
        qsearch(i,'mu');
        outcell{i,2}=[outcell{i,2},toc];
%         outmat(i,2,1)=(outmat(i,2,1)*outmat(i,2,2)+toc)/(outmat(i,2,2)+1);
%         outmat(i,2,2)=outmat(i,2,2)+1;
    end
    for k=1:addmat(i,3)
        tic;
        qsearch(i,'fu');
        outcell{i,3}=[outcell{i,3},toc];
%         outmat(i,3,1)=(outmat(i,3,1)*outmat(i,3,2)+toc)/(outmat(i,3,2)+1);
%         outmat(i,3,2)=outmat(i,3,2)+1;
    end
end
for i=11:20 % when using large numbers of qubits, save after each computation
    for k=1:addmat(i,1)
        tic;
        qsearch(i,'pu');
        outcell{i,1}=[outcell{i,1},toc];
        save('outcell.mat','outcell');
%         outmat(i,1,1)=(outmat(i,1,1)*outmat(i,1,2)+toc)/(outmat(i,1,2)+1);
%         outmat(i,1,2)=outmat(i,1,2)+1;
    end
    for k=1:addmat(i,2)
        tic;
        qsearch(i,'mu');
        outcell{i,2}=[outcell{i,2},toc];
        save('outcell.mat','outcell');
%         outmat(i,2,1)=(outmat(i,2,1)*outmat(i,2,2)+toc)/(outmat(i,2,2)+1);
%         outmat(i,2,2)=outmat(i,2,2)+1;
    end
    for k=1:addmat(i,3)
        tic;
        qsearch(i,'fu');
        outcell{i,3}=[outcell{i,3},toc];
        save('outcell.mat','outcell');
%         outmat(i,3,1)=(outmat(i,3,1)*outmat(i,3,2)+toc)/(outmat(i,3,2)+1);
%         outmat(i,3,2)=outmat(i,3,2)+1;
    end
end

