function [A,x,y]=tocke_podatki(vpisna)

% sestavi podatke za domaco nalogo pri NLA
% A ima v vsaki vrstici podatke o eni meritvi 
% v vsaki vrstici so tri elementi: i j d
% i,j: indeksa tock (1-7), d: "izmerjena" razdalja

rand('state',vpisna)
x=[0 1 1 0 0.1+rand(1,3)*0.9]';
y=[0 0 1 1 0.1+rand(1,3)*0.9]';
A=[];
for i=1:4
    for j=5:7
        d = sqrt((x(i)-x(j))^2+(y(i)-y(j))^2); % tocna razdalja
        dp = d*(1+0.01*(rand-0.5));
        A=[A; i j dp];
    end
end
d = sqrt((x(5)-x(6))^2+(y(5)-y(6))^2); % tocna razdalja
dp = d*(1+0.01*(rand-0.5));
A=[A; 5 6 dp];
d = sqrt((x(6)-x(7))^2+(y(6)-y(7))^2); % tocna razdalja
dp = d*(1+0.01*(rand-0.5));
A=[A; 6 7 dp];
d = sqrt((x(5)-x(7))^2+(y(5)-y(7))^2); % tocna razdalja
dp = d*(1+0.01*(rand-0.5));
A=[A; 5 7 dp];

