function [] = drawtens(I)
%Input I shold be an nx2x2 array
%This function will draw the n ellipses
%generated by the matrices
%I(1,:,:),...,I(n,:,:)

%resolution of circles (i.e. how many points on the circles are drawn)
resol=100;

%get sizes
[n,d,~]=size(I);

%shrinkfactor (to avoid intersecting ellipses) 
sf=10*n;

%temporary dxd matrix
temp=zeros(d);

for i=1:n
    temp(:,:)=I(i,:,:);
    phi=linspace(0,2*pi,resol);
    ps=temp*[cos(phi);sin(phi)]/sf;
    x=i/(n-1)+ps(1,:);
    y=ps(2,:);
    patch(x,y,'b')
end

%white background
set(gcf,'color','w');


axis equal
axis off
axis tight

end