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

« back to all changes in this revision

Viewing changes to man/elementary/min.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
 
min              Scilab Group              Scilab Function              min
2
 
NAME
3
 
   min - minimum
4
 
  
5
 
CALLING SEQUENCE
6
 
 [m [,k]]=min(A)
7
 
 [m [,k]]=min(A,'c') or [m [,k]]=min(A,'r')
8
 
 [m [,k]]=min(A1,A2,...,An)
9
 
 [m [,k]]=min(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, min(A)  is the smallest element  A.
18
 
  [m,k]=min(A) gives in addition the index of the minimum. 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  minimum of the j th column of A
21
 
  (A(:,j)), k(j) gives the row  indice which contain the minimum for column
22
 
  j. 'c' is used for the dual operation on the rows of A. 
23
 
  m=min(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)= min( Aj(i)), j=1,...,n. [m,k]=min(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 minimum.  [m,k]=min(list(A1,...,An)) is an equivalent
28
 
  syntax of  [m,k]=min(A1,A2,...,An)
29
 
  
30
 
EXAMPLE
31
 
 [m,n]=min([1,3,1])
32
 
 [m,n]=min([3,1,1],[1,3,1],[1,1,3])
33
 
 [m,n]=min(list([3,1,1],[1,3,1],[1,1,3]))
34
 
 [m,n]=min(list(1,3,1))
35
 
SEE ALSO
36
 
   sort, find, max   
37