matlab surf函数X=[4454040.064456746.44458410.54458546.64451810.3984456825.714456891.6374456187.3954456773.2744457080.5284456786.0634456807.5734456828.2384457352.3084457645.0394456674.2234456496.6014456696.2994457053.8584457448.542];Y=[485572.824847
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/08 17:06:01
matlab surf函数X=[4454040.064456746.44458410.54458546.64451810.3984456825.714456891.6374456187.3954456773.2744457080.5284456786.0634456807.5734456828.2384457352.3084457645.0394456674.2234456496.6014456696.2994457053.8584457448.542];Y=[485572.824847
matlab surf函数
X=[
4454040.06
4456746.4
4458410.5
4458546.6
4451810.398
4456825.71
4456891.637
4456187.395
4456773.274
4457080.528
4456786.063
4456807.573
4456828.238
4457352.308
4457645.039
4456674.223
4456496.601
4456696.299
4457053.858
4457448.542
];
Y=[
485572.82
484760.7
486963.5
488659.9
487848.908
487525.855
487739.62
487903.045
486988.73
487150.905
485665.438
486298.563
487260.096
488240.05
488331.886
487808.155
488040.481
486754.152
488175.424
487223.325
];
Z=[
1030.1
648.5
789.5
775.6
386.081
458.812
462.574
510.703
448.545
458.292
418.705
429.26
452.884
491.2
516.6
471.83
484.209
442.861
477.394
478.622
];
NX=[
-0.099
-0.059
-0.337
-0.622
-0.009
-1.452
-1.472
0.779
-1.407
0.799
-1.323
-1.354
-1.43
0.701
0.678
0.769
0.757
-1.387
0.722
0.775
];
NY=[
-0.378
-0.264
-0.183
-0.306
-0.939
1.237
1.229
0.948
1.267
1.049
1.362
1.31
1.253
1.028
1.055
0.992
0.961
1.276
1.002
1.082
];
NZ=[
-0.241
0.192
0.344
-0.36
-1.476
0.643
0.592
0.409
0.873
0.799
1.363
1.151
0.737
0.368
0.304
0.487
0.369
1.025
0.385
0.808
];
surf(X,Y,Z);
但总是提示 Error using ==> surf at 78
Z must be a matrix,not a scalar or vector.
Error in ==> xtzhjdpd at 134
surf(x,y,z);
matlab surf函数X=[4454040.064456746.44458410.54458546.64451810.3984456825.714456891.6374456187.3954456773.2744457080.5284456786.0634456807.5734456828.2384457352.3084457645.0394456674.2234456496.6014456696.2994457053.8584457448.542];Y=[485572.824847
哎 ,Z must be a matrix, not a scalar or vector.
Z必须是一个矩阵,而不是向量
你的z不是矩阵啊