zadanko 3 pokusiło

zad3 function[P]=zad3(A,B); Dab=sqrt(((A(1)-B(1))^2)+((A(2)-B(2))^2)); Aba=azymut(B(1),B(2),A(1),A(2),’r’); P(1)=B(1)-(Dab/3)*cos(Aba); P(2)=B(2)-(Dab/3)*sin(Aba); P plot(A(1),A(2),’ro’,B(1),B(2),’ro’,P(1),P(2),’ro’)

Read more

Re: Matlab kusi

zad3 function[P]=zad3(A,B); Dab=sqrt(((A(1)-B(1))^2)+((A(2)-B(2))^2)); Aba=azymut(B(1),B(2),A(1),A(2),’r’); P(1)=B(1)-(Dab/3)*cos(Aba); P(2)=B(2)-(Dab/3)*sin(Aba); P plot(A(1),A(2),’ro’,B(1),B(2),’ro’,P(1),P(2),’ro’)

Read more

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[…]

Read more

Re: Matlab kusi

zad z biegunówką clc clear all A=importdata(‚pomiar3.txt’) [w,k]=size(A); A19=f_Azymut(A(1,4),A(1,5),A(5,4),A(5,5),’g’); for i=2:w; if (i~=5); A(i,4)=A(1,4)+A(i,3)*cos((A19+((A(i,2))-A(5,2))*(pi/200))); A(i,5)=A(1,5)+A(i,3)*sin((A19+((A(i,2))-A(5,2))*(pi/200))); end end A

Read more