Steve on Image Processing with MATLAB

Image processing concepts, algorithms, and MATLAB

Note

Steve on Image Processing with MATLAB has been archived and will not be updated.

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.

|
  • print

评论

要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。