This command can be used to:
- Open the worksheet for a dataset,
- Open LabTalk Variables and Functions dialog,
- Create a matrix,
- Open Fitting Function Builder/Organizer dialog for the fitting function,
- Open X-Function Builder dialog for the X-Function,
- Open Colors dialog.
edit [options] [<Fitting Function Name> / <datasetName> / <X Function Name>]
When <Fitting Function Name> or <datasetName> is omitted, LabTalk Variables and Functions dialog opens. See also List (command).
Specifying the <Fitting Function Name> opens the Fitting Function Builder (for user-defined functions) or the Fitting Function Organizer (for built-in functions) for user to edit the curve fitting function. This option was introduced in Origin 8.5.
Specifying the <datasetName> opens the workbook containing the datasetName.
<DatasetName> can be either a dataset in a workbook (such as Book1_B) or a loose dataset (like myLooseDs). Note that using this command can view a worksheet created with the creat -w command.
When <datasetName> conflicts with <Fitting Function Name>, the fitting function, instead of the dataset, will be edited.
-c; Open Colors dialog
Syntax: ed -c <color>
Open the Colors dialog with color selected as default, where color is the same single argument that you can pass to color function. For example,
ed -c #253dcf;
ed -c Red;
-m; Create a matrix
Syntax: ed -m <matrixName> nCol nRow
Create an nCol by nRow matrix named matrixName.
-x; Open an X-Function in X-Function Builder
Syntax: ed -x XFName
Specify the name of X-Function XFName and open it in X-Function builder. This works the same as the X-Function execution option -e.
This opens the Fitting Function Wizard (Origin 8.5) if there is a user-defined fitting function named "myfunc", or open a workbook containing the dataset "myfunc".
This opens the LabTalk Variables and Functions dialog (Equivalent to list command without options):
When a graph window is open, the following script opens the worksheet for the active dataset.
The following script opens the x-function integ1 in X-Function Builder:
edit -x integ1;
Ed (object) to open the Code Builder window.