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

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

Справка Scilab >> Linear Algebra > Subspaces > spanplus


sum of subspaces

Calling Sequence



A, B

two real or complex matrices with equal number of rows


orthogonal or unitary square matrix

dim, dima

integers, dimension of subspaces


nonnegative real number


computes a basis X such that:

the first dima columns of X span Range(A) and the following (dim-dima) columns make a basis of A+B relative to A.

The dim first columns of X make a basis for A+B.

One has the following canonical form for [A,B]:

[*,*]    (dima rows)
X'*[A,B]=[0,*]    (dim-dima rows)

tol is an optional argument (see function code).


A=rand(6,2)*rand(2,5);      // rank(A)=2
B=[A(:,1),rand(6,2)]*rand(3,3);   //two additional independent vectors

See Also

Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Fri Apr 11 14:19:37 CEST 2014