[英]Matlab ezmesh - plotting a plane that is a function of one variable
I'm plotting planes in matlab using ezmesh. 我正在使用ezmesh在matlab中绘制平面。 Everything goes fine until I attempt to plot a plane such as z=y -- ezmesh wants a function of two variables. 一切顺利,直到我尝试绘制z = y之类的平面为止-ezmesh想要两个变量的函数。 I'd like to continue using ezmesh in my code rather than using something like surf for this one plane... can ezmesh plot this plane? 我想继续在我的代码中使用ezmesh,而不是在该平面上使用类似surf的东西... ezmesh可以绘制该平面吗?
This works over here: 在这里工作:
ezmesh(@(x,y)y)
The equation z=y
acutally is a function of two variables, only it holds for all x
, which is expressed by not using x
. 方程z=y
实际上是两个变量的函数,仅对所有x
都成立,这通过不使用x
来表示。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.