ezsurfc
(不推荐)易于使用的组合表面/轮廓绘图仪
ezsurfc
不推荐使用。使用fsurf
代替。
语法
ezsurfc(有趣)
ezsurfc(有趣,域)
ezsurfc (funx好笑,funz)
ezsurfc (funx好笑,funz股市、smax tmin,达峰时间))
ezsurfc (funx好笑,funz[最小,最大])
n ezsurfc(…)
“保监会”ezsurfc(…)
ezsurfc (axes_handle…)
H = ezsurfc(…)
描述
ezsurfc(有趣)
创建的图形乐趣(x, y)
使用surfc
函数。这个函数有趣的
在默认域上绘制:-2π <x
< 2π, -2π <y
< 2π。
有趣的
可以是函数句柄、字符向量或字符串(参见提示部分)。
ezsurfc(有趣,域)
情节有趣的
超过指定的域
。域
可以是一个4 × 1向量[xmin
,xmax
,ymin
,ymax
]或2 × 1向量[最小值
,马克斯
) (最小值
<x
<马克斯
,最小值
<y
<马克斯
).
ezsurfc (funx好笑,funz)
绘制参数曲面funx (s, t)
,好笑(s, t)
,funz (s, t)
除以平方:-2π <年代
< 2π, -2π <t
< 2π。
ezsurfc (funx好笑,funz股市、smax tmin,达峰时间))
或<年代pan itemprop="syntax">ezsurfc (funx好笑,funz[最小,最大])
使用指定的域绘制参数曲面。
n ezsurfc(…)
情节<年代pan class="emphasis">f在默认域上使用n
——- - - - - -n
网格。的默认值n
是60。
“保监会”ezsurfc(…)
情节<年代pan class="emphasis">f在以域为中心的硬盘上。
ezsurfc (axes_handle…)
绘图到轴与手柄axes_handle
而不是当前的轴(gca
).
H = ezsurfc(…)
中图形对象的句柄h
。
例子
提示
ezsurf
和ezsurfc
不要接受复杂的输入。
将函数作为字符向量或字符串传递
数组的乘法、除法和求幂总是隐含在传递给的表达式中ezsurfc
。例如MATLAB<年代up>®表达式的曲面/等高线图的语法
√x。^2 + y ^2);
写为
√(x^2 + y^2)
也就是说,x ^ 2
被解释为x ^ 2。
在您传递给的字符向量或字符串中ezsurfc
。
如果要绘制的函数是变量的函数u和v(而不是x和y),然后是域端点umin
,umax
,vmin
,vmax
按字母顺序排列。因此,(u^2 - v^3',[0,1],[3,6])
情节u2-v3.大于0 <u< 1,3 <v< 6。
传递函数句柄
函数句柄参数必须指向使用MATLAB语法的函数。例如,下面的语句定义了一个匿名函数并传递了函数句柄跳频
来ezsurfc
。
Fh = @(x,y)√(x)^2 + y ^2);ezsurf(跳频)
注意,当使用函数句柄时,必须使用数组乘数、数组乘法和数组除法操作符(.^, .*, ./
)自ezsurfc
不像字符向量或字符串输入那样改变语法。
传递附加参数
如果函数有额外的参数,例如k
在myfun
:
函数z = myfun (x, y, k1、k2、k3) z = x。* (y ^ k1)。/ (x。^k2 + y ^k3);
然后你可以使用一个匿名函数来指定该参数:
ezsurfc (@ (x, y) myfun (x, y, 2, 2, 4))
另请参阅
fcontour
|<年代pan itemscope itemtype="//www.tianjin-qmedu.com/help/schema/MathWorksDocPage/SeeAlso" itemprop="seealso">fmesh
|<年代pan itemscope itemtype="//www.tianjin-qmedu.com/help/schema/MathWorksDocPage/SeeAlso" itemprop="seealso">fplot
|<年代pan itemscope itemtype="//www.tianjin-qmedu.com/help/schema/MathWorksDocPage/SeeAlso" itemprop="seealso">fplot3
|<年代pan itemscope itemtype="//www.tianjin-qmedu.com/help/schema/MathWorksDocPage/SeeAlso" itemprop="seealso">fsurf
|<年代pan itemscope itemtype="//www.tianjin-qmedu.com/help/schema/MathWorksDocPage/SeeAlso" itemprop="seealso">surfc