~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/elementary/max.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
max              Scilab Group              Scilab Function              max
2
 
NAME
3
 
   max - maximum
4
 
  
5
 
CALLING SEQUENCE
6
 
 [m [,k]]=max(A)
7
 
 [m [,k]]=max(A,'c') or [m [,k]]=max(A,'r')
8
 
 [m [,k]]=max(A1,A2,...,An)
9
 
 [m [,k]]=max(list(A1,A2,...,An))
10
 
PARAMETERS
11
 
 A          : real vector or matrix.
12
 
            
13
 
 A1,...,An  : a set of real vectors or matrices, all of the same size or
14
 
            scalar.
15
 
            
16
 
DESCRIPTION
17
 
   For A, a real  vector or matrix, max(A)  is the largest element  A.
18
 
  [m,k]=max(A) gives in addition the index of the maximum. A second
19
 
  argument of type string 'r' or 'c' can be used : 'r' is used to get a row
20
 
  vector m such that m(j) contains the  maximum of the j th column of A
21
 
  (A(:,j)), k(j) gives the row  indice which contain the maximum for column
22
 
  j. 'c' is used for the dual operation on the rows of A. 
23
 
  m=max(A1,A2,...,An), where all the Aj are matrices of the same 
24
 
  sizes,returns a vector or a matrix m of size size(m)=size(A1) such that
25
 
  m(i)= max( Aj(i)), j=1,...,n. [m,k]=max(A1,A2,...,An)  gives in addition
26
 
  the vector or matrix k. for a fixed i, k(i) is the number of the first
27
 
  Aj(i) achieving the maximum.  [m,k]=max(list(A1,...,An)) is an equivalent
28
 
  syntax of  [m,k]=max(A1,A2,...,An)
29
 
  
30
 
EXAMPLE
31
 
 [m,n]=max([1,3,1])
32
 
 [m,n]=max([3,1,1],[1,3,1],[1,1,3])
33
 
 [m,n]=max([3,-2,1],1)
34
 
 [m,n]=max(list([3,1,1],[1,3,1],[1,1,3]))
35
 
 [m,n]=max(list(1,3,1))
36
 
SEE ALSO
37
 
   sort, find, mini
38