manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

8.16 Data create (MGL)

MGL command: new dat [nx=1 ny=1 nz=1]

Creates or recreates the array dat with specified size and fills it by zero. This command does nothing if one of parameters nx, ny, nz is zero or negative.

MGL command: var dat num v1 [v2=nan]

Creates new variable with name dat for one-dimensional array of size num. Array elements are equidistantly distributed in range [v1, v2]. If v2=nan then v2=v1 is used.

MGL command: list dat v1 ...

Creates new variable with name dat and fills it by numeric values of command arguments v1 .... Command can create one-dimensional and two-dimensional arrays with arbitrary values. For creating 2d array the user should use delimiter ‘|’ which means that the following values lie in next row. Array sizes are [maximal of row sizes * number of rows]. For example, command list 1 | 2 3 creates the array [1 0; 2 3]. Note, that the maximal number of arguments is 1000.

MGL command: list dat d1 ...

Creates new variable with name dat and fills it by data values of arrays of command arguments d1 .... Command can create two-dimensional or three-dimensional (if arrays in arguments are 2d arrays) arrays with arbitrary values. Minor dimensions of all arrays in arguments should be equal to dimensions of first array d1. In the opposite case the argument will be ignored. Note, that the maximal number of arguments is 1000.

MGL command: copy dat1 dat2 ['eq'='' on_axis=on]
MGL command: copy dat1 val

Creates new variable with name dat1 and fills it by data values of array dat2. At this, if parameter eq is specified then the data will be modified by corresponding formula by the same way as in fill command (for on_axis=on) or in modify command (for on_axis=off).

MGL command: idset dat 'ids'

Set the symbol id for data columns. The string must contain one symbol ’a’...’z’ per column (without spaces).

MGL command: info dat [detail=off]

Display information (sizes, maximum/minimum, momentums and so on) about the data dat. Show brief information by default (if detail=off).

MGL command: info 'text'

Display text as information (warning).


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]
© manpagez.com 2000-2024
Individual documents may contain additional copyright information.