MATLAB中提示出现??? Error using ==> vertcat是为什么

A=[126.68,125.32,123.4,116.47,117.18,114.47,111.8,106.27,112.57,117,108.9,101.75,113.... A=[126.68,125.32,123.4,116.47,117.18,114.47,111.8,
106.27,112.57,117,108.9,101.75,113.7,103.82,
104.08,106.53,114.35,117.3,118.83,121.48,120.15,
115.87,113,106.7,113.25,119.3
,121.5,102.68,108.33,113.5,114.17,110.33,87.6,91.17
]
B=[45.75,43.87,39.9,39.15,38.03,40.82,38.33,37.87,36.63,34.27,36.63,34.8,36.05,30.65
,29.53,30.62,31.85,32.03,31.23,30.23,28.68,28.18,26.58,23.13,26.08,25.05
,25,22.8,22.2,22.3,20.03,43.8,29.67]
C=A*pi/180.0
D=B*pi/180
E=zeros(34,34)
F=zeros(34,34)
S=zeros(34,34)
for i=1:34
for j=1:34
E(i,j)=A(i)-A(j)
F(i,j)=B(i)-B(j)
S(i,j)=2*asin(sqrt(pow2(sin(E/2))+cos(C(i))*cos(C(j))*pow2(sin(F/2))))
end
end
S*6378.137
展开
 我来答
大海jianfei
推荐于2017-09-23 · TA获得超过628个赞
知道小有建树答主
回答量:215
采纳率:0%
帮助的人:252万
展开全部
A=[126.68,125.32,123.4,116.47,117.18,114.47,111.8,106.27,112.57,117,108.9,101.75,113.7,103.82,104.08,106.53,114.35,117.3,118.83,121.48,120.15,115.87,113,106.7,113.25,119.3,121.5,102.68,108.33,113.5,114.17,110.33,87.6,91.17];
B=[45.75,43.87,39.9,39.15,38.03,40.82,38.33,37.87,36.63,34.27,36.63,34.8,36.05,30.65,29.53,30.62,31.85,32.03,31.23,30.23,28.68,28.18,26.58,23.13,26.08,25.05,25,22.8,22.2,22.3,20.03,43.8,29.67,30];
C=A*pi/180.0
D=B*pi/180
E=zeros(34,34)
F=zeros(34,34)
S=zeros(34,34)
for i=1:34
for j=1:34
E(i,j)=A(i)-A(j);
F(i,j)=B(i)-B(j);
S(i,j)=2*asin(sqrt(pow2(sin(E(i,j)/2))+cos(C(i))*cos(C(j))*pow2(sin(F(i,j)/2))));
end
end
S*6378.137
B 少个数据只有33个我加了一个就好了
S(i,j)=2*asin(sqrt(pow2(sin(E(i,j)/2))+cos(C(i))*cos(C(j))*pow2(sin(F(i,j)/2))));
此句里的E 和F 是不是E(i,j)F(i,j)啊

ans =

1.0e+004 *

Columns 1 through 4

2.0038 - 0.7227i 2.0038 - 1.1820i 2.0038 - 1.3394i 1.4721
1.4957 2.0038 - 0.7016i 2.0038 - 1.1667i 1.8832
1.2487 1.5351 2.0038 - 0.6709i 2.0038 - 0.6308i
2.0038 - 1.1789i 2.0038 - 1.1607i 2.0038 - 0.7405i 2.0038 - 0.5513i
2.0038 - 1.2477i 2.0038 - 1.0820i 2.0038 - 0.4549i 2.0038 - 0.7861i
2.0038 - 0.8554i 2.0038 - 1.0796i 2.0038 - 1.1901i 1.2147
1.2284 1.4700 2.0038 - 0.8267i 1.4641
2.0038 - 1.0633i 2.0038 - 0.5572i 1.2802 2.0038 - 1.1135i
1.8995 2.0038 - 0.4807i 2.0038 - 1.0719i 1.1567
2.0038 - 1.3249i 2.0038 - 1.2004i 2.0038 - 0.7480i 2.0038 - 0.6682i
1.8193 1.5802 1.6401 2.0038 - 0.9291i
2.0038 - 0.6819i 2.0038 - 1.0253i 2.0038 - 1.1820i 1.1156
2.0038 - 0.6292i 2.0038 - 1.0444i 2.0038 - 1.2908i 1.1666
2.0038 - 1.1920i 2.0038 - 1.2043i 2.0038 - 0.8354i 2.0038 - 0.2087i
2.0038 - 1.1298i 2.0038 - 1.1304i 2.0038 - 0.6496i 2.0038 - 0.6461i
2.0038 - 0.9145i 2.0038 - 0.3408i 1.1986 2.0038 - 1.2044i
2.0038 - 0.5682i 2.0038 - 1.0391i 2.0038 - 1.1908i 1.6221
2.0038 - 1.1997i 2.0038 - 1.1258i 2.0038 - 0.6058i 2.0038 - 0.9540i
2.0038 - 1.0414i 2.0038 - 0.7743i 1.6669 2.0038 - 1.2279i
1.5431 1.4167 1.4911 2.0038 - 1.1028i
2.0038 - 0.6018i 1.5715 1.2567 2.0038 - 1.2809i
2.0038 - 1.0560i 2.0038 - 1.1793i 2.0038 - 0.9231i 2.0038 - 0.4236i
1.4921 2.0038 - 0.5556i 2.0038 - 1.1024i 1.3157
2.0038 - 0.9354i 2.0038 - 0.2168i 1.1838 2.0038 - 1.1588i
2.0038 - 0.5582i 2.0038 - 0.9066i 2.0038 - 1.2438i 1.1265
2.0038 - 1.0374i 2.0038 - 0.4343i 1.3073 2.0038 - 1.1797i
2.0038 - 0.6004i 1.4666 1.5031 2.0038 - 0.9255i
2.0038 - 0.9596i 2.0038 - 1.1519i 2.0038 - 1.0619i 1.2972
2.0038 - 0.5398i 1.6343 1.4786 2.0038 - 1.0393i
2.0038 - 0.5544i 2.0038 - 0.9977i 2.0038 - 1.2810i 1.1607
2.0038 - 0.7857i 2.0038 - 1.1419i 2.0038 - 1.2951i 1.2000
1.2475 1.4390 2.0038 - 0.4534i 2.0038 - 0.5105i
1.1683 1.7824 2.0038 - 0.9907i 0.9763
2.0038 - 1.0564i 2.0038 - 1.1145i 2.0038 - 0.6903i 1.7501 、、、、、、、、、、
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式