matlab问题:用surf和surfc绘图是不是必须用meshgrid定义变量例如我这有写的话:x1=2000:5:3600;x2=2000:5:3600;f=70*x1+120*x2;surfc(x1,x2,f);提示错误:Error using ==> surfc at 42The surface Z must contain more than one row or

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/13 23:33:38

matlab问题:用surf和surfc绘图是不是必须用meshgrid定义变量例如我这有写的话:x1=2000:5:3600;x2=2000:5:3600;f=70*x1+120*x2;surfc(x1,x2,f);提示错误:Error using ==> surfc at 42The surface Z must contain more than one row or
matlab问题:用surf和surfc绘图是不是必须用meshgrid定义变量
例如我这有写的话:
x1=2000:5:3600;
x2=2000:5:3600;
f=70*x1+120*x2;
surfc(x1,x2,f);
提示错误:Error using ==> surfc at 42
The surface Z must contain more than one row or column.
但是我用meshgrid的话没有问题,程序如下:
[x1,x2]=meshgrid(2000:5:3600);
f=70*x1+120*x2;
surfc(x1,x2,f);
请问这是什么原因?当使用surf和surfc时是不是必须用meshgrid?不用的话怎么定义变量?

matlab问题:用surf和surfc绘图是不是必须用meshgrid定义变量例如我这有写的话:x1=2000:5:3600;x2=2000:5:3600;f=70*x1+120*x2;surfc(x1,x2,f);提示错误:Error using ==> surfc at 42The surface Z must contain more than one row or
surf和surfc是网格绘图,所以用的数据必须是meshgrid生成的数据,或者是二维矩阵

matlab问题:用surf和surfc绘图是不是必须用meshgrid定义变量例如我这有写的话:x1=2000:5:3600;x2=2000:5:3600;f=70*x1+120*x2;surfc(x1,x2,f);提示错误:Error using ==> surfc at 42The surface Z must contain more than one row or matlab的surf函数问题如图.为什么 你好我想向你请教matlab 用surf函数画图的问题,用surf画这个公式的图像,变量任取 matlab中mesh和surf有什么区别 matlab surf函数画图用surf做出该公式的图形,急求 matlab surf函数画图问题matlab代码:[x,y] = meshgrid(-pi:0.05:pi);z = sin(x);surf(x,y,z);结果图首尾相连了,怎么回事啊? 有关matlab的surf命令~K是一个复数矩阵,想知道surf(K)和surf(abs(K))的区别... matlab中surf什么意思 surf算法的matlab程序, matlab中 surfl与surfc什么区别?help里的英文看不懂 关于MATLAB作图的问题.请问下面这种图是用什么函数作出来的,除了contour,mesh, surf函数. matlab中surf函数的详细用法 It's quite exciting ( ) me ( ) the Internet a. for surf b.for to surf c.for for surf d. of to surf(1)It's quite exciting ( ) me ( ) the Interneta. for surfb.for to surfc.for for surfd. of to surf (2)You'd better ( ) in the dictionary when hi,我有一个matlab方面关于surf画图的问题请教,A=[1,2,3,4,5],B=[5,3,6,5,2,8,4],C=[2,2,3,6,8,2,5;5,4,3,6,9,3,4;3,2,5,6,1,2,5;1,5,1,8,3,2,1;5,5,3,6,2,2,现在要用surf画图,但不管是用surf(A,B,C)还是surf(A',B,C),都是出错:Warni 用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.这是我的程序和错误.希望有人能剖析一下能否有其 skateboard的和surf用法 什么时候用go skateboarding?surf什么时候用go surfing,什么时候用三单形式?skateboard的和surf用法什么时候用go skateboarding?可以直接用skateboarding吗?surf什么时候用go surfing,什么时候 matlab中surf函数用法,z=0.5*(x-exp(0.0154*y-2))这个方程我想在matlab中做一个三维曲图像,怎么用surf函数实现呢, surf和vocational的意思