Well, maybe I was being a bit lazy there, as well as unfair to our writers! Here's what the meshgrid documentation says:
[X,Y] = meshgrid(x,y) transforms the domain specified by vectors x and y into arrays X and Y, which can be used to evaluate functions of two variables and three-dimensional mesh/surface plots. The rows of the output array X are copies of the vector x; columns of the output array Y are copies of the vector y.
Thanks, Philip. Keep those comments coming, everyone.
要发表评论，请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。