1
.TH min G "April 1993" "Scilab Group" "Scilab Function"
8
[m [,k]]=min(A,'c') or [m [,k]]=min(A,'r')
9
[m [,k]]=min(A1,A2,...,An)
10
[m [,k]]=min(list(A1,A2,...,An))
15
: real vector or matrix.
18
: a set of real vectors or matrices, all of the same size or scalar.
21
For \fVA\fR, a real vector or matrix, \fVmin(A)\fR
22
is the smallest element
23
\fVA\fR. \fV[m,k]=min(A)\fR gives in addition the index of the minimum.
24
A second argument of type string \fV'r'\fR or \fV'c'\fR can be used : \fV'r'\fR
25
is used to get a row vector \fVm\fR such that \fVm(j)\fR contains the
26
minimum of the \fVj\fR th column of A (\fVA(:,j)\fR), \fVk(j)\fR gives the row
27
indice which contain the minimum for column \fVj\fR. \fV'c'\fR is used for the dual operation on the rows of \fVA\fR.
29
\fVm=min(A1,A2,...,An)\fR, where all the \fVAj\fR are matrices of the same
30
sizes,returns a vector or a matrix \fVm\fR of size \fVsize(m)=size(A1)\fR
31
such that \fVm(i)= min( Aj(i)), j=1,...,n\fR. \fV[m,k]=min(A1,A2,...,An)\fR
32
gives in addition the vector or matrix \fVk\fR. for a fixed \fVi\fR,
33
\fVk(i)\fR is the number of the first \fVAj(i)\fR achieving the minimum.
35
\fV[m,k]=min(list(A1,...,An))\fR is an equivalent syntax of
36
\fV[m,k]=min(A1,A2,...,An)\fR
40
[m,n]=min([3,1,1],[1,3,1],[1,1,3])
41
[m,n]=min(list([3,1,1],[1,3,1],[1,1,3]))
42
[m,n]=min(list(1,3,1))