function plotTripod(U)

N = size(U,1);
scale=5000/N;
U2 = U;
r='r'; g='g'; b='b';

figure;
for i=0:(N-1),
    x=i/(N-1);
    y=0;
    z=0;
    p1=[x,y,z]+scale*squeeze(U2(i+1,1,:))'; 
    plot3([x+i,p1(1)+i],[y,p1(2)],[z,p1(3)],r);
    hold on
    p2=[x,y,z]+scale*squeeze(U2(i+1,2,:))';
    plot3([x+i,p2(1)+i],[y,p2(2)],[z,p2(3)],g);
    p3=[x,y,z]+scale*squeeze(U2(i+1,3,:))';
    plot3([x+i,p3(1)+i],[y,p3(2)],[z,p3(3)],b);
end 
axis equal;
set(gca,'YTickLabel',{});set(gca,'ZTickLabel',{});
set(gca,'YTick',[0 eps]);set(gca,'ZTick',[0 eps]);
view(55,11);
end
