powered by
Returns the sum of the elements of the first input
sum_MATLAB(A, dim)# S4 method for array,missing sum_MATLAB(A)# S4 method for array,character sum_MATLAB(A, dim)# S4 method for array,numeric sum_MATLAB(A, dim)
# S4 method for array,missing sum_MATLAB(A)
# S4 method for array,character sum_MATLAB(A, dim)
# S4 method for array,numeric sum_MATLAB(A, dim)
The total, row or column sum of A
vector, matrix or array
dimention over which A is to be summed
sum_MATLAB(A = array, dim = missing): Sum elements of A along the first array dimension whose size does not equal 1
sum_MATLAB(A = array, dim = missing)
sum_MATLAB(A = array, dim = character): Computes the sum of all elements of A
sum_MATLAB(A = array, dim = character)
sum_MATLAB(A = array, dim = numeric): Computes the sum of all elements of A
sum_MATLAB(A = array, dim = numeric)
Waldir Leoncio
x1 <- array(1:9, c(3, 3)) sum_MATLAB(x1) sum_MATLAB(x1, "all") sum_MATLAB(x1, 2)
Run the code above in your browser using DataLab