Worksheet: Convert to XYZ
Convert worksheet data to XYZ format
Minimum Origin Version Required: 8.0 SR3, updated in 8.5.1 SR0
1. w2xyz iw:=[book1]sheet1! format:=xcol xlabel:=row1 ycol:=1;
2. w2xyz format:=xcol xlabel:=param param:=P ycol:=1;
3. w2xyz -r 2 range:=rng format:=ycol ylabel:=sel1 xcol:=sel1 trim:=1;
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Convert Range | range |
Input int |
|
Convert Range
Option list:
|
Input Worksheet | iw |
Input Worksheet |
|
Specify the input worksheet that has the data to be converted. |
Input | irng |
Input Range |
|
Specify the input range to be converted. |
Data Format | format |
Input int |
|
Specify the format of the source data.
Option list:
|
X Values in | xlabel |
Input int |
|
Specify where the X values are. It is available when the Data Format is X across columns.
Option list:
|
Y Values in | ylabel |
Input int |
|
Specify where the Y values are. It is available when the Data Format is Y across columns.
Option list:
|
Column Label | param |
Input string |
|
This is only available when Column Label is selected from X Values in or Y Values in. Specify the label row to use as the X or Y coordinates using its Label Row character. Please refer to Column Label Row Characters for the single character of each column label row. |
X Values in First Column | xcol |
Input int |
|
Specify whether the X values are in the first column. It is available when the Data Format is Y across columns. |
Y Values in First Column | ycol |
Input int |
|
Specify whether the Y values are in the first column. It is available when the Data Format is X across columns. |
Trim Missing | trim |
Input int |
|
Determine whether to trim the missing rows or columns. If, in converting to XYZ any of the coordinates is missing, specifying this option will exclude the data point.
|
Output | oz |
Output XYZRange |
|
Specify three columns for the output XYZ range. These three columns can be in different worksheets and workbooks.
See the syntax of Output Notations. |
This X-Function is used to convert matrix-like worksheet data (virtual matrix) into XYZ column form. X coordinates are usually arranged in the first row and Y coordinates in the first column, or vice versa. It does not require the X and Y coordinates to be evenly-spaced. If XY coordinates are not included, column and row index are used. Z values can be numeric or text (as wll as categorical data).
w2xyz -d;
in Command Window to open the dialog of the w2xyz X-Function.