set_coordinate_grid()
Description: Creates a coordinate grid data structure used by FOCUS for various calculations.
Usage
grid = set_coordinate_grid(delta, xmin, xmax, ymin, ymax, zmin, zmax);
grid = set_coordinate_grid(x_coords, y_coords, z_coords);
grid = set_coordinate_grid(vector);
Arguments
- delta The difference between two data points in a coordinate direction. Should be a matrix of the form [ dx dy dz ].
- xmin The lowest x plane.
- xmax The highest x plane.
- ymin The lowest y plane.
- ymax The highest y plane.
- zmin The lowest z plane.
- zmax The highest z plane.
- x_coords A list of x coordinates.
- y_coords A list of y coordinates.
- z_coords A list of z coordinates.
- vector a list of coordinates in [ [x1 y1 z1]; [x2 y2 z2];...] notation.
Output Parameters
- grid A coordinate grid struct that can be used by FNM functions.
Notes
If x_coords, y_coords, and z_coords are provided, each
point is defined as point(i) = [ x_coords(i) y_coords(i) z_coords(i) ]. If no arguments are provided, the user will be prompted to enter delta, xmin, xmax, ymin, ymax, zmin, and zmax.
Calling this function with no arguments will cause the program to prompt the user for each required value.