ILNumerics Ultimate VS

ILMathmeshgrid Method (InArrayfcomplex, InArrayfcomplex, OutArrayfcomplex)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Create two matrices for evaluation and visualization of 2 dimensional functions over a 2d grid.

[ILNumerics Computing Engine]

Namespace:  ILNumerics
Assembly:  ILNumerics.Computing (in ILNumerics.Computing.dll) Version: (5.5.7503.3146)

public static RetArray<fcomplex> meshgrid(
	InArray<fcomplex> X,
	InArray<fcomplex> Y,
	OutArray<fcomplex> outY = null


Type: ILNumericsInArrayfcomplex
Vector of x values.
Type: ILNumericsInArrayfcomplex
Vector of y values.
outY (Optional)
Type: ILNumericsOutArrayfcomplex
[Output, Optional]: if on entry outY is not null it holds the values for the Y dimension on return.

Return Value

Type: RetArrayfcomplex
X values matrix along the values of X. Corresponding values for Y are returned in outY.

ArgumentNullExceptionIf X or Y is null.

The matrices returned can conveniently be used to evaluate and visualize functions of 2 variables over a grid of (X Y) positions.

Note that the X dimension goes along the rows, while the second dimension is considered the columns! This deviates from the common intuition and the actual storage order of matrix elements (i.e.: first dimension along the columns and 2nd dimension along the rows). The reason for it is the convenience this order gives for plotting purposes: In most plots the X axis is expected to run horizontaly.

[ILNumerics Computing Engine]

See Also


MathInternal.meshgrid(InArrayfcomplex, InArrayfcomplex, InArrayfcomplex, OutArrayfcomplex, OutArrayfcomplex)

Other Resources