dane = [
  149.9975  150.0175
  149.9975  150.0174
  430.0101  430.0302
  430.0101  430.0304
  1400.003  1400.0223
  1400.003  1400.0221
  280.0126  280.0327
  280.0126  280.0331
  1250.0055 1250.0248
  1250.0055 1250.0257
  969.9929  970.0119
  969.9929  970.0125
  ];
A = [dane(:,1) ones(size(dane(:,1)))];
L = [dane(:,1) - dane(:,2)];
X = -inverse(A'*A)*(A'*L)

