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

« back to all changes in this revision

Viewing changes to man/elementary/mini.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
mini             Scilab Group             Scilab Function              mini
 
2
NAME
 
3
   mini - minimum
 
4
  
 
5
CALLING SEQUENCE
 
6
 [m [,k]]=mini(A)
 
7
 [m [,k]]=mini(A,'c') or [m [,k]]=mini(A,'r')
 
8
 [m [,k]]=mini(A1,A2,...,An)
 
9
 [m [,k]]=mini(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, mini(A)  is the smallest element  A.
 
18
  [m,k]=mini(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=mini(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)= mini( Aj(i)), j=1,...,n. [m,k]=mini(A1,A2,...,An)  gives in
 
26
  addition the vector or matrix k. for a fixed i, k(i) is the number of the
 
27
  first Aj(i) achieving the minimum.  [m,k]=mini(list(A1,...,An)) is an
 
28
  equivalent syntax of  [m,k]=mini(A1,A2,...,An)
 
29
  
 
30
EXAMPLE
 
31
 [m,n]=mini([1,3,1])
 
32
 [m,n]=mini([3,1,1],[1,3,1],[1,1,3])
 
33
 [m,n]=mini(list([3,1,1],[1,3,1],[1,1,3]))
 
34
 [m,n]=mini(list(1,3,1))
 
35
SEE ALSO
 
36
   sort, find, maxi, min 
 
37