MatrixMesh Method (Double, Double, Int32, Double, Double, Int32) |
Namespace: Accord.Math
public static double[][] Mesh( double rowMin, double rowMax, int rowSteps, double colMin, double colMax, int colSteps )
// The Mesh method can be used to generate all // possible (x,y) pairs between two ranges. // We can create a grid as double[][] grid = Matrix.Mesh ( rowMin: 0, rowMax: 1, rowSteps: 10, colMin: 0, colMax: 1, colSteps: 5 ); // Now we can plot the points on-screen ScatterplotBox.Show("Grid (fixed steps)", grid).Hold();
The resulting image is shown below.