photo

Nijita Kesavan Namboothiri


Actif depuis 2019

Followers: 0   Following: 0

Statistiques

  • First Answer

Afficher les badges

Feeds

Afficher par

Réponse apportée
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
function summa=halfsum(m) summa=0 [r c]=size(m) for i=1:r for j=1:c if i<=j summa=summa+m(i,j) ...

plus de 5 ans il y a | 1