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


Matrix generation

  • random
    • grand — Generate random numbers
    • prbs_a — Generates a pseudo random binary sequence
    • rand — Random numbers
    • sample — Sampling: random draw with replacement
    • samplef — sample values with replacement from a population with given frequencies.
    • samwr — Sampling without replacement
  • blockdiag — Creates a block diagonal matrix from provided arrays. Block diagonal system connection.
  • companion — companion matrix
  • diag — diagonal including or extracting
  • empty [] — empty matrix. Array ranges destructor.
  • eye — identity matrix
  • frank — Frank matrix
  • hadamard — Hadamard matrix
  • hankel — Hankel matrix
  • hilbm — Hilbert matrix
  • invhilb — Inverse of the Hilbert matrix
  • linspace — generates linearly spaced numbers between 2 reached bounds
  • logspace — logarithmically spaced vector
  • magic — Magic square
  • 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
  • pascal — Pascal matrix
  • perms — Generate the table of permutations of given elements
  • repmat — Replicate and tile an array
  • rosser — Rosser matrix
  • squarewave — generates a square wave with period 2*%pi
  • testmatrix — generate special matrices, such as Hilbert, Frank... This function is obsolete. Please use magic, invhilb or frank instead.
  • toeplitz — Toeplitz matrix (chosen constant diagonal bands)
  • vander — Vandermonde matrix
  • wilkinson — Wilkinson matrix
  • 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:
Thu May 22 12:50:58 CEST 2025