1
max Scilab Group Scilab Function max
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))
11
A : real vector or matrix.
13
A1,...,An : a set of real vectors or matrices, all of the same size or
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)
32
[m,n]=max([3,1,1],[1,3,1],[1,1,3])
34
[m,n]=max(list([3,1,1],[1,3,1],[1,1,3]))
35
[m,n]=max(list(1,3,1))