~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to man/elementary/eye.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
eye              Scilab Group              Scilab Function              eye
 
2
NAME
 
3
   eye - identity matrix
 
4
  
 
5
CALLING SEQUENCE
 
6
 X=eye(m,n)
 
7
 X=eye(A)
 
8
 X=eye()
 
9
PARAMETERS
 
10
 A,X        : matrices or syslin lists
 
11
            
 
12
 m,n        : integers
 
13
            
 
14
DESCRIPTION
 
15
   according to its arguments defines an mxn matrix with 1 along the  main
 
16
  diagonal or an identity matrix of the same dimension as A .
 
17
  
 
18
   Caution: eye(10) is interpreted as eye(A) with A=10 i.e. 1. (It is NOT a
 
19
  ten by ten identity matrix!).
 
20
  
 
21
   If A is a linear system represented by a syslin list, eye(A) returns an
 
22
  eye matrix of appropriate dimension:  (number of outputs x number of
 
23
  inputs).
 
24
  
 
25
   eye() produces a identity matrix with undefined dimensions. Dimensions
 
26
  will be defined when this identity matrix is added to a mtrix with fixed
 
27
  dimensions.
 
28
  
 
29
EXAMPLES
 
30
 eye(2,3)
 
31
 A=rand(2,3);eye(A)
 
32
 s=poly(0,'s');A=[s,1;s,s+1];eye(A)
 
33
 A=[1/s,1;s,2];eye(A);
 
34
 A=ssrand(2,2,3);eye(A)
 
35
 [1 2;3 4]+2*eye()
 
36
SEE ALSO
 
37
   ones, zeros  
 
38