Scilab Website | Contribute with GitLab | Mailing list archives | 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 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Linear Algebra > proj

proj

projection

Syntax

P = proj(X1,X2)

Arguments

X1,X2

two real matrices with equal number of columns

P

real projection matrix (P^2=P)

Description

P is the projection on X2 parallel to X1.

Examples

X1=rand(5,2);X2=rand(5,3);
P=proj(X1,X2);
norm(P^2-P,1)
trace(P)    // This is dim(X2)
[Q,M]=fullrf(P);
svd([Q,X2])   // span(Q) = span(X2)

See also

  • projspec — spectral operators
  • orth — orthogonal basis
  • orthProj — Computes the orthogonal projection of a point to a polyline in the plane.
  • fullrf — full rank factorization
Report an issue
<< Subspaces Linear Algebra Interpolation >>

Copyright (c) 2022-2024 (Dassault Systèmes)
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