Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - 日本語

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

Scilab help >> Scilab > Scilab keywords > colon


(:) colon operator


Colon symbol : can be used to form implicit vectors. (see also linspace, logspace)


is the vector [j, j+1,...,k] (empty if j>k).


is the vector [j, j+d, ..., j+m*d]

The colon notation can also be used to pick out selected rows, columns and elements of vectors and matrices (see also extraction,insertion)


is the vector of all the elements of A regarded as a single column.


ys the j-th column of A


is [A(j),A(j+1),...,A(k)]


is [A(:,j),A(:,j+1),...,A(:,k)]


fills the matrix A with entries of w (taken column by column if w is a matrix).

See Also

  • matrix — reshape a vector or a matrix to a different size matrix
  • for — language keyword for loops
  • linspace — linearly spaced vector
  • logspace — logarithmically spaced vector
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Mar 03 10:59:31 CET 2011