Syntax
M = max(A) M = max(A,[],"all") M = max(A,[],dim) M = max(A,[],vecdim) M = max(A,[],___,missingflag)
Input
A | Input array |
scalar | vector | matrix | multidimensional array | table | | |
timetable | |
dim | Dimension to operate along |
positive integer scalar | |
vecdim | Vector of dimensions |
vector of positive integers | |
B | Additional input array |
scalar | vector | matrix | multidimensional array | table | | |
timetable | |
missingflag | Missing value condition |
"omitmissing" (default) | "omitnan" | "omitnat" | "omitundefined" | | |
"includemissing" | "includenan" | "includenat" | "includeundefined" | |
method | Comparison method |
"auto" (default) | "real" | "abs" |
Output
M | Maximum values |
scalar | vector | matrix | multidimensional array | table | |
I | Index |
scalar | vector | matrix | multidimensional array | table | |
C | Maximum elements from A or B |
scalar | vector | matrix | multidimensional array | table | | |
timetable |