Complex
The Complex data type uses imaginary literals.
- i
- 3.3i
- 3.3j
- 5.0E2I
- 6.23J
- 2 i (must be no space between the numeric literal and the i)
- i3 (the numeric literal must precede the i)
Discover new features and enhancements.
New to Activate? Learn the basics here.
Start using Activate with our interactive tutorials.
Learn about the components in Activate models.
Learn about modeling physical components.
Learn about modeling hydraulic systems with the Hydraulics (By Fluidon) library.
Learn about modeling electrical and electronic systems with Modelica and Spice.
Learn about modeling multibody dynamic systems.
Learn about modeling electromagnetic systems.
Learn how to set up, run, and troubleshoot simulations.
Discover options to review, display, and export results.
Learn about block libraries for building dynamic system models.
Explore the Extended Definitions, OML Guides, Block Library, API Guide and Glossary.
PDF file with in-depth information on key topics in the User's Guide.
OpenMatrix is a mathematical scripting language.
Literals are items that are constant throughout the life of the application. Literals include numeric, imaginary, characters, strings, logicals, and Other (NaN/Inf).
Data types are items that are constant throughout the life of the application and are built into the OpenMatrix language.
Data types are items that are constant throughout the life of the application and are built into the OpenMatrix language.
The Complex data type uses imaginary literals.
The double data type uses numeric literals.
The string data type involves a sequence of characters and uses string literals.
Structures are a data type similar to cells. However, where cells use numeric indices to refer to specific pieces of data, structures use strings.
Cell arrays are generic data containers.
OML supports multidimensional matrices.
Sparse matrices are a special case of 2D matrices, where only non-zero elements are stored and displayed for efficiency. A sparse matrix typically has a high percentage of zero elements.
Strings are arrays of characters.
OML language scripts manipulate data through variables. Variables are referred to by their name (alphanumeric) and can be created (assigned) and deleted as described in this section.
Indexing is used to retrieve one or more specific values out of a collection.
Operators are used to combine operands.
Each operator in this section is explained with the operations of scalars, vectors, and matrices that are allowed for said operator.
Statements are made of expressions and may be a simple expression or a more complex variety of expressions.
Loops are used to perform the same set of statements multiple times.
There are two types of workspaces: Local and Global.
Functions are packets of statements that can be used repeatedly.
OpenMatrix statements persist in .oml files.
This section describes files that can be manipulated by the OpenMatrix Language.
Errors and warning messages are both output in the console (or the Command Window in GUI mode) of Activate.
Objects in OML are defined using the classdef keyword. This creates a blueprint for an object but does not actually create (instantiate) anything.
The Reference Guide contains documentation for all functions supported in the OpenMatrix language.
Describes all of the blocks in the installed Activate library.
Key terms associated with the software.
You've got questions? We've got answers!
Define shortcuts to common operations.
OpenMatrix is a mathematical scripting language.
Explore the Extended Definitions, OML Guides, Block Library, API Guide and Glossary.
Data types are items that are constant throughout the life of the application and are built into the OpenMatrix language.
The Complex data type uses imaginary literals.
ON THIS PAGE
The Complex data type uses imaginary literals.
ON THIS PAGE
(c) 2025 Altair Engineering, Inc. All rights reserved.