A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged


Thanks to @m_goldberg's comment, I figured it out. Essentially, I use CoordinateBoundsArray[] to make the mesh, and Apply[] to evaluate the function at each point. Following the notation in my MATLAB code above: bounds = {{-1,1}, {-1,1}}; mesh = CoordinateBoundsArray[bounds, {Into[m], Into[n]}]; F[kx_, ky_] := kx^2 + ky^2 psis = Apply[F, ...

Top 50 recent answers are included