Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language

Manipulating variables

Scroll Prev Top Next More

The following commands are used to create and access variables.

 

Command

Description

=

Assignment operator.

:

Array operator.

[]

Create matrix.

%

Create variable with space in the name

linspace

Creates a linear spaced array.

matrix

Creates a matrix filled with zeros.

ones

Creates a matrix filled with ones.

zeros

Creates a matrix filled with zeros.

randmatrix

Creates a matrix with all elements randomly set between 0 and 1

randnmatrix

Creates a matrix with all elements randomly distributed with mean 0 and standard distribution 1.

histogram

Create a matrix containing the histogram count of a yield analysis result.

meshgridx

Create a 2D meshgrid in x direction.

meshgridy

Create a 2D meshgrid in y direction.

meshgrid3dx

Create a 3D meshgrid in x direction.

meshgrid3dy

Create a 3D meshgrid in y direction.

meshgrid3dz

Create a 3D meshgrid in z direction.

meshgrid4d

Create a 4D meshgrid in any direction

clear

Clears all stored script variables from memory.

clearfunctions

Clears all stored functions.

clearexcept

Clears all workspace variables except the specified ones.

print

Prints a string.

workspace

Returns a string of all the currently defined scripting variables.

Matrix elements

How to assign and access matrix elements.

Matrix operations

Describes how operators and functions act on matrices.

Pre-defined constants

List of pre-defined constants.

eye

Creates identity matrix

struct

Creates unstructured dataset

cell

Creates cell array variable

 

The following commands are used to create, access and manipulate datasets. For an introduction to datasets, see the dataset introduction page.

Command

Description

rectilineardataset

Creates an empty rectilinear dataset associated with the coordinates x/y/z.

matrixdataset

Creates an empty matrix dataset.

unstructureddataset

Creates an empty unstructured dataset associated with the coordinates x/y/z and the connectivity matrix

addparameter

Adds a parameter to an existing dataset.

addattribute

Adds an attribute to an existing dataset.

getresult

Gets the dataset results from a monitor or analyzer.

getparameter

Get a parameter from an existing dataset.

getattribute

Get an attribute from an existing dataset.

getmeshcontours

Get information about the contours between different domains in an unstructured (finite-element) dataset.

 

The following commands are INTERCONNECT specific.

Command

Description

global

Returns the value of a global variable specified. Global variables are root element properties.

simulation

Returns bandwidth and channel related simulation properties.

 

Copyright Lumerical Inc. | Privacy | Site Map