Create a virtual matrix from worksheet data
Minimum Origin Version Required: 8.5.1
The vmname, coltype, rowtype variables are introduced from Origin 2015.
1. w2vm irng:=[Book1]Sheet1 rowpos:=selrow1 colpos:=selcol1 ztitle:=VMObject;
2. w2vm irng:=1!2[1]:4[3] rowpos:=3 label:=L colpos:=2 ztitle:=MyVM;
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 |
---|---|---|---|---|
Input | irng |
Input Range |
|
Specify Z values of the virtual matrix. |
Data Layout | format |
Input int |
|
Specify which way to set the X and Y values.
Option list:
|
Y/X Values in | rowpos |
Input int |
|
Specify the row for Y(or X)-values. Whether Y or X-values are specified is determined by the value of format.
Note that Y(or X)-values in the row should be in descending or ascending order. Option list:
|
Y/X Range | rowrng |
Input Range |
|
Specify a row for Y(or X)-values. rowrng should be specified only when rowpos is set to Custom.
Note that rowrng should be in the same worksheet of irng. |
Column Label | label |
Input string |
|
Specify a string for Column Label whose row is used as Y(or X)-values. label should be specified only when rowpos is set to Column label. It needs to use a single character to specify the column label row in script. Please refer to Column Label Row Characters for the single character of each column label row. |
Format Y/X Data | rowtype |
Input string |
|
Specify the data format of the X/Y data. This variable is only accessible when the rowpos variable is not set to 0 (None). You can refer to supported Origin Formats notation for details. |
X/Y Values in | colpos |
Input int |
|
Specify the column for X(or Y)-values. Whether X or Y-values are specified is determined by the value of format.
Note that X(or Y)-values in the column should be in descending or ascending order. Option list:
|
X/Y Range | colrng |
Input Range |
|
Specify a column for X(or Y)-values. colrng should be specified only when colpos is set to Custom.
Note that colrng should be in the same worksheet of irng. |
Format X/Y Data | coltype |
Input string |
|
Specify the data format of the X/Y data. This variable is only accessible when colpos variable is not set to 0 (None). You can refer to supported Origin Formats notation for details. |
X Title | xtitle |
Input string |
|
Specify the X-axis title. |
Y Title | ytitle |
Input string |
|
Specify the Y-axis title. |
Z Title | ztitle |
Input string |
|
Specify the Z-axis title (or called long name of the virtual matrix). |
Virtual Matrix Name | vmname |
Input string |
|
Specify the name of virtual matrix. |
This X-Function can be used to create a virtual matrix object from worksheet data. After the virtual matrix object has been created, it can be accessed in Plot Details dialog and Layer Contents dialog etc. to create a new graph.