Scilab Website | Contribute with GitLab | Scilab Community | ATOMS toolboxes
Scilab Online Help
6.1.0 - English

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

Please note that the recommended version of Scilab is 2026.1.0. This page might be outdated.
However, this page did not exist in the previous stable version.

Scilab Help >> Elementary Functions > Matrix generation

Matrix generation

  • random
    • grand — Random numbers
    • noisegen — noise generation (obsolete)
    • prbs_a — Generates a pseudo random binary sequence
    • rand — Random numbers
  • blockdiag — Creates a block diagonal matrix from provided arrays. Block diagonal system connection.
  • diag — diagonal including or extracting
  • empty [] — empty matrix. Array ranges destructor.
  • eye — identity matrix
  • linspace — generates linearly spaced numbers between 2 reached bounds
  • logspace — logarithmically spaced vector
  • meshgrid — Create matrices or 3-D arrays from vectors replicated in 2 or 3 dimensions
  • ndgrid — build matrices or N-D arrays by replicating some template vectors
  • ones — matrix made of ones
  • repmat — Replicate and tile an array
  • squarewave — generates a square wave with period 2*%pi
  • testmatrix — generate special matrices, such as Hilbert, Franck
  • toeplitz — Toeplitz matrix (chosen constant diagonal bands)
  • zeros — null matrix
Report an issue
<< Discrete mathematics Elementary Functions Log - exp - power >>

Copyright (c) 2022-2026 (Dassault Systèmes S.E.)
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:
Tue Feb 25 08:49:19 CET 2020