snake=[0 1 0 0 0;
       0 1 0 0 0];
n=2;
np=30;

qq= talasz (snake,5,1,-1,2);

openfig;
hr=openpl1(snake, qq(1,:), [0,0], [-2 12 -7 7]);
plotpl1(snake,qq,hr);

