%visualizza i tempi impiegati da thomas.m e dal backslash di Matlab
ts=5:5:300;
temp=zeros(length(ts),2);
for i=1:length(ts)
    n=ts(i);
    A=laplacian(n);
    b=ones(n,1);
    tic;x=A\b;temp(i,1)=toc;
    tic;x=thomas(A,b);temp(i,2)=toc;
end

plot(1:length(ts),temp);
