File: min.cat

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (37 lines) | stat: -rw-r--r-- 1,412 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
min              Scilab Group              Scilab Function              min
NAME
   min - minimum
  
CALLING SEQUENCE
 [m [,k]]=min(A)
 [m [,k]]=min(A,'c') or [m [,k]]=min(A,'r')
 [m [,k]]=min(A1,A2,...,An)
 [m [,k]]=min(list(A1,A2,...,An))
PARAMETERS
 A          : real vector or matrix.
            
 A1,...,An  : a set of real vectors or matrices, all of the same size or
            scalar.
            
DESCRIPTION
    For A, a real  vector or matrix, min(A)  is the smallest element  A.
  [m,k]=min(A) gives in addition the index of the minimum. A second
  argument of type string 'r' or 'c' can be used : 'r' is used to get a row
  vector m such that m(j) contains the  minimum of the j th column of A
  (A(:,j)), k(j) gives the row  indice which contain the minimum for column
  j. 'c' is used for the dual operation on the rows of A. 
  m=min(A1,A2,...,An), where all the Aj are matrices of the same 
  sizes,returns a vector or a matrix m of size size(m)=size(A1) such that
  m(i)= min( Aj(i)), j=1,...,n. [m,k]=min(A1,A2,...,An)  gives in addition
  the vector or matrix k. for a fixed i, k(i) is the number of the first
  Aj(i) achieving the minimum.  [m,k]=min(list(A1,...,An)) is an equivalent
  syntax of  [m,k]=min(A1,A2,...,An)
  
EXAMPLE
 [m,n]=min([1,3,1])
 [m,n]=min([3,1,1],[1,3,1],[1,1,3])
 [m,n]=min(list([3,1,1],[1,3,1],[1,1,3]))
 [m,n]=min(list(1,3,1))
SEE ALSO
   sort, find, max