Yachika Singh
Followers: 0 Following: 0
Feeds
已解决
Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...
4 years 前
已解决
Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.
4 years 前
已回答
Write a function called halfsum that takes as input an at most two-dimensional array A and computes the sum of the elements of A that are in the lower right triangular part of A, that is, elements in the counter-diagonal (going from the bottom left c
%for any random matrix function summa=halfsum(A) [row, col]=size(A); summa=0; for i=1:row for j=i:col if i<=j ...
Write a function called halfsum that takes as input an at most two-dimensional array A and computes the sum of the elements of A that are in the lower right triangular part of A, that is, elements in the counter-diagonal (going from the bottom left c
%for any random matrix function summa=halfsum(A) [row, col]=size(A); summa=0; for i=1:row for j=i:col if i<=j ...
4 years 前 | 4