More about meshgrid
Reader Philip Batchelor thought I could do better in describing meshgrid. I had commented that "meshgrid is kind of hard to describe in words."
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.
That works!
Thanks, Philip. Keep those comments coming, everyone.
댓글
댓글을 남기려면 링크 를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.