Scilab Website | Contribute with GitLab | Scilab Community | ATOMS toolboxes
Scilab Online Help
6.0.2 - 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

  • diag — diagonal including or extracting
  • empty — ([]) empty matrix
  • eye — identity matrix
  • grand — Random numbers
  • linspace — generates linearly spaced numbers between 2 reached bounds
  • logspace — logarithmically spaced vector
  • meshgrid — create matrices or 3-D arrays
  • ndgrid — build matrices or N-D arrays by replicating some template vectors
  • ones — matrix made of ones
  • rand — Random numbers
  • 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 — matrix made of zeros
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 Feb 14 14:57:12 CET 2019