Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.1 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Scilab > types > matrices

matrices

Scilab objects, matrices in Scilab

Description

Matrices are basic objects defined in Scilab. They can be defined as follows:

E=[e11,e12,...,e1n;
   e21,e22,...,e2n;
        ....
   em1,em2,...,emn];

Entries eij can be real or complex numbers, polynomials, rationals, strings, booleans.

Vectors are seen as matrices with one row or one column.

Examples

E=[1,2;3,4]
E=[%T,%F;1==1,1~=1]
s=poly(0,'s');
E=[s,s^2;1,1+s]
E=[1/s,0;s,1/(s+1)]
E=['A11','A12';'A21','A22']

See also

  • poly — Polynomial definition from given roots or coefficients, or characteristic to a square matrix.
  • string — conversion to string
  • boolean — Scilab Objects, boolean variables and operators & | ~
  • rational — rational fractions
  • empty — empty matrix. Array ranges destructor.
  • hypermatrices — a Scilab object, N dimensional matrix in Scilab
  • testmatrix — generate special matrices, such as Hilbert, Franck
Report an issue
<< library types rational >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jan 03 14:23:19 CET 2022