[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: matrices
From: |
Steve Thompson |
Subject: |
Re: matrices |
Date: |
Mon, 1 Jun 2009 15:32:53 -0700 |
sum1 = sum(diag(A))
sum2 = sum(sum(A))-sum1
?
On Mon, Jun 1, 2009 at 3:21 PM, Carlo Rossi <address@hidden> wrote:
> Hello,
> I have a matrix A and I need to do it:
>
> sum1 = SUM_of_all_element_on_diagonal
> sum2 = sum_ofAllElemetNonOn_theDiagonal;
>
> is it possible to do it in a compact way? thanks
>
>
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>
>
- matrices, Carlo Rossi, 2009/06/01
- Re: matrices,
Steve Thompson <=
- Re: matrices, Dmitri A. Sergatskov, 2009/06/01
- Re: matrices, Ólafur Jens Sigurðsson, 2009/06/01