资源描述:
《摄影测量——后方交会(matlab)电子教案.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、精品好文档,推荐学习交流3.用matlab编程结果function[XS,YS,ZS,p,w,k]=hfjhx_o=[-0.08615;-0.06899;-0.05340;0.08211;-0.01478;-0.07663;0.01064;0.06443];X=[36589.641,25273.32,2195.17;37631.08,31324.51,728.69;39100.97,24934.98,2386.50;40426.54,30319.81,757.31];f=0.15324;m=40000;XS=38437;YS=27963
2、.155;ZS=f*m+1516.9175;p=0;w=0;k=0;R=zeros(3,3);num=1;dx=zeros(6,1);whilenum==1
3、
4、abs(dx(4,1)*206225)>6
5、
6、abs(dx(5,1)*206225)>6
7、
8、abs(dx(6,1)*206265)>6;R(1,1)=cos(p)*cos(k)-sin(p)*sin(w)*sin(k);R(1,2)=-cos(p)*cos(k)-sin(p)*sin(w)*sin(k);R(1,3)=-sin(p)*cos(w);R(2,1)=cos(w)*si
9、n(k);R(2,2)=cos(w)*cos(k);R(2,3)=-sin(w);R(3,1)=sin(p)*cos(k)+cos(p)*sin(w)*sin(k);R(3,2)=-sin(p)*sin(k)+cos(p)*sin(w)*cos(k);R(3,3)=cos(p)*cos(w);x_s=zeros(8,1);x_s(1,1)=-f*(R(1,1)*(X(1,1)-XS)+R(2,1)*(X(1,2)-YS)+R(3,1)*(X(1,3)-ZS))/(R(1,3)*(X(1,1)-XS)+R(2,3)*(X(1,2)-YS)
10、+R(3,3)*(X(1,3)-ZS));仅供学习与交流,如有侵权请联系网站删除谢谢5精品好文档,推荐学习交流x_s(2,1)=-f*(R(1,2)*(X(1,1)-XS)+R(2,2)*(X(1,2)-YS)+R(3,2)*(X(1,3)-ZS))/(R(1,3)*(X(1,1)-XS)+R(2,3)*(X(1,2)-YS)+R(3,3)*(X(1,3)-ZS));x_s(3,1)=-f*(R(1,1)*(X(2,1)-XS)+R(2,1)*(X(2,2)-YS)+R(3,1)*(X(2,3)-ZS))/(R(1,3)*(X(2,1)
11、-XS)+R(2,3)*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