2.2.1.12 XYZ2Mat

Menu Information

Worksheet: Convert to Matrix: XYZ Gridding

Brief Information

Convert XYZ data to matrix

Command Line Usage

XYZ2Mat iz:=(col(a),col(b),col(c)) settings.ConvertToMatrix:=1 om:=<new: Sparse>;

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input iz

Input

XYZRange

<active>
XYZ worksheet data which needs to convert into matrix by gridding.
Gridding Settings settings

Input

TreeNode

<unassigned>
Settings for gridding XYZ worksheet data. Please refer to More Information section below for more details.
Output Matrix om

Output

MatrixObject

<new>
If this check-box is selected, it allows specifying a matrix for the output gridding data. Output Matrix and Output Virtual Matrix can only one be selected.

See the syntax of Output Notations.

Output Virtual Matrix ovm

Output

Worksheet

<new>
If this check-box is selected, it allows specifying a worksheet for the output gridding data. And the output worksheet is arranged as a virtual matrix. Output Matrix and Output Virtual Matrix can only one be selected.

See the syntax of Output Notations.

Examples

  1. Create a new workbook and import the data <Origin Installation Directory>\Samples\Matrix Conversion and Gridding\XYZ Random Gaussian.dat into this workbook.
  2. Highlight column C and select Set As: Z from the right-click menu to set column C as Z column.
  3. Keep column C highlighted and select main menu Worksheet: Convert to Matrix: XYZ Gridding or run XYZ2Mat -d; in the Command Window to open the XYZ Gridding dialog.
  4. Expand the Gridding Settings branch, choose Random (Renka Cline) from the Gridding Method and Parameters drop-down list, and 3D Color Map Surface from the Preview Plot Type drop-down list. Check the Preview check-box to the left of the OK button. In the Preview panel, select the Preview Result tab to show the result in 3D color map surface graph.
    Xyz2mat example dialog.png
  5. Click the OK button to get the result as below.
    Xyz2mat example result.png

More Information

For more information, please refer to our User Guide.

Related X-Functions

w2m, m2w, r2m, wexpand2m, xyz_regular, xyz_sparse, xyz_shep, xyz_shep_nag, xyz_renka, xyz_renka_nag, xyz_tps


Keywords:worksheet, gridding