两个不同大小的三维矩阵如何组合并进行插值画图?
有两个三维矩阵,一个是6*2*4,一个是5*4*3,现要组合两个矩阵,并进行插值,画三维图,用的是griddata3,但是插出来很多NAN,用slice画图,没有显示,向大家请教下 建议楼主方便的话给齐完整数据, 方便别人试试看! 是这样的,第一组数据的x坐标为:TPX1(:,:,1) =
250 250 250 250 250
550 550 550 550 550
850 850 850 850 850
1150 1150 1150 1150 1150
TPX1(:,:,2) =
250 250 250 250 250
550 550 550 550 550
850 850 850 850 850
1150 1150 1150 1150 1150
TPX1(:,:,3) =
250 250 250 250 250
550 550 550 550 550
850 850 850 850 850
1150 1150 1150 1150 1150
第一组数据的y坐标为:
TPY1(:,:,1) =
680 2240 2760 3280 3800
680 2240 2760 3280 3800
680 2240 2760 3280 3800
680 2240 2760 3280 3800
TPY1(:,:,2) =
680 2240 2760 3280 3800
680 2240 2760 3280 3800
680 2240 2760 3280 3800
680 2240 2760 3280 3800
TPY1(:,:,3) =
680 2240 2760 3280 3800
680 2240 2760 3280 3800
680 2240 2760 3280 3800
680 2240 2760 3280 3800
第一组数据的z坐标为:
TPZ1(:,:,1) =
300 300 300 300 300
300 300 300 300 300
300 300 300 300 300
300 300 300 300 300
TPZ1(:,:,2) =
600 600 600 600 600
600 600 600 600 600
600 600 600 600 600
600 600 600 600 600
TPZ1(:,:,3) =
900 900 900 900 900
900 900 900 900 900
900 900 900 900 900
900 900 900 900 900
第一组数据的值为:
TEH1(:,:,1) =
32.8521 31.9854 52.4063 32.7438 31.4438
36.2104 34.1521 51.3229 35.2625 31.0104
35.1813 34.1521 58.7167 33.2312 58.8521
33.0146 25.4042 73.5313 32.4458963.2458
TEH1(:,:,2) =
44.5250 52.2167 92.1917 0 36.4000
34.0167 45.6083 55.0875 37.0500 39.6500
33.1771 80.8979 39.4875 58.2021 46.2042
40.5167 96.8771 38.8104 36.0479 0
TEH1(:,:,3) =
30.9021 61.1000 33.5292 35.1000 33.2312
31.3083 36.0750 35.0187 36.4000 37.2938
31.3083 36.8604 35.4792 37.2125 35.3708
30.2792 33.9083 32.6625 37.3750 33.5562 第二组数据的x坐标为:
TPX2(:,:,1) =
200 800
200 800
400 1000
400 1000
600 1200
600 1200
TPX2(:,:,2) =
200 800
200 800
400 1000
400 1000
600 1200
600 1200
TPX2(:,:,3) =
200 800
200 800
400 1000
400 1000
600 1200
600 1200
TPX2(:,:,4) =
200 800
200 800
400 1000
400 1000
600 1200
600 1200
y坐标为:
TPY2(:,:,1) =
1200 1200
1200 1200
1200 1200
1200 1200
1200 1200
1200 1200
TPY2(:,:,2) =
1200 1200
1200 1200
1200 1200
1200 1200
1200 1200
1200 1200
TPY2(:,:,3) =
1720 1720
1720 1720
1720 1720
1720 1720
1720 1720
1720 1720
TPY2(:,:,4) =
1720 1720
1720 1720
1720 1720
1720 1720
1720 1720
1720 1720
z坐标为:
TPZ2(:,:,1) =
150 150
450 450
150 150
450 450
150 150
450 450
TPZ2(:,:,2) =
750 750
1050 1050
750 750
1050 1050
750 750
1050 1050
TPZ2(:,:,3) =
150 150
450 450
150 150
450 450
150 150
450 450
TPZ2(:,:,4) =
750 750
1050 1050
750 750
1050 1050
750 750
1050 1050
值为:
TEH2(:,:,1) =
1.0e+003 *
0.4051 0.0535
0.0607 0.7513
0.9451 1.0658
0.8784 0.1013
0.3759 0.0489
0.0729 0.0558
TEH2(:,:,2) =
39.1625 40.7875
32.0125 39.1625
52.0542 39.1083
32.7167 38.2417
44.7146 40.6250
33.5563 36.1292
TEH2(:,:,3) =
36.5625 36.5625
33.8542 35.4792
36.1833 37.7000
34.8563 33.1500
36.7250 37.2938
36.5625 33.2042
TEH2(:,:,4) =
95.0896 93.9521
84.1479 95.7396
232.8083268.3417
93.3292671.7750
175.0667 84.5813
77.0250 86.1250
这两组数据描述的是同一个三维数据体,要把他们组合在一起,然后插值画图 请问:你说的“组合两个矩阵”是啥意思?
页:
[1]