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不是矩阵啊

matlab surf函数画图问题matlab代码:[x,y] = meshgrid(-pi:0.05:pi);z = sin(x);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 matlab中surf函数用法,z=0.5*(x-exp(0.0154*y-2))这个方程我想在matlab中做一个三维曲图像,怎么用surf函数实现呢, matlab中surf函数的详细用法 已知等长向量X,Y,Z,如何利用mesh或surf函数在MATLAB中绘制三维曲面图? matlab的surf函数问题如图.为什么 matlab surf函数画图用surf做出该公式的图形,急求 新手求助matlab三维绘图函数什么样的数据可以用来绘制三维图像,例如surf(x,y,Z) x,y向量的长度分别等于矩阵Z的列数和行数surf(X,Y,Z) X,Y利用分格函数[X,Y]=meshgrid(x,y) 这些解释如何理解,对其中的 用matlab的surf函数,画z=根号下(x+y)的图像.x,y范围都是-5到5[x,y]=meshgrid(-5:0.1:5);z=sqrt(x+y);surf(x,y,z);Error using ==> surf at 74X,Y,Z,and C cannot be complex.这是我的程序和错误.希望有人能剖析一下能否有其 用MATLAB怎么画球体?r=1;z=sqrt(r^2-x^2-y^2);这个球怎么画啊,最后是球的参数方程,用plot函数或者surf函数. 求大神用matlab surf绘制二元函数z=cos(x^2+y^2)在定义域内的空间曲面图x,y属于【0 pi】.并给出代码! MATLAB 动画出不来,x=linspace(-0.001,0.001,200);y=linspace(-0.001,0.001,200);[X,Y]=meshgrid(x,y);r=X.^2+Y.^2;Z=peaks; % MATLAB提供的三维函数surf(Z); TheAxis=axis; % 保存坐标值,使得下面所有帧都在同一坐标系.变量TheAxis% matlab三维图形中提取二维图形,求救!我利用matlab中函数画了一个三维的圆球,现在想提取这个球体中垂直于z轴的圆面,即给z赋固定值提取一个园面f(x,y),下面是我的程序:[x,y,z]=sphere(30);b=surf(x,y, 怎么用matlab做三维函数的图?比如f(x,y,z),x,y,z 都是1~101的,想要用matlab做出三维f的变化情况(用颜色表示),怎么搞?比如f=1/|x-51|+1/|y-51|+1/|z-51|.用surf做嘛? matlab中surf什么意思 surf算法的matlab程序, matlab三维曲面问题!问题是这样,方程是 Z=f(X,Y);X,只知道Z=0:0.5:100;那请问可不可以利用matlab三维曲面函数surf或者mesh等等,来绘制这个方程的曲面呢,如果不可以绘制曲面,得到的是什么,是 MATLAB中关于surf函数的使用我在做毕设,初用MATLAB,题目是血管的三维重建,想要把一个二维的图通过坐标变换放入三维坐标系中的某个位置上,现在用到surf(x,y,z,c)函数.x是512*1,y是512*1,c是512*512,