matlab z 2gr

clc

clear all

A=importdata(‚A.txt’)

P=importdata(‚P.txt’)

L=importdata(‚L.txt’)

X=-(A’*P*A)^(-1)*A’*P*L

clc

clear all

A=importdata(‚pomiar.txt’)

[w,k]=size(A);

A89=azymut(A(8,4),A(8,5),A(w,4),A(w,5),’r’)

for i=1:7;

A(i,4)=A(8,4)+A(i,3)*cos((A89+((A(i,2))-A(w,2)*(pi/180)));

A(i,5)=A(8,5)+A(i,3)*sin((A89+((A(i,2))-A(w,2)*(pi/180)));

end

A

clc

clear all

x=((-2*pi):0.1:(2*pi))

y1=2*((sin(x)).^2)+2*((cos(x)).^2)

y2=exp(2)*x

plot(x,y1,x,y2)

xlabel(‚x’)

ylabel(‚y’)

title(‚zadanie3’)