help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: matrices


From: Dmitri A. Sergatskov
Subject: Re: matrices
Date: Mon, 1 Jun 2009 17:40:16 -0500

On Mon, Jun 1, 2009 at 5: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

sum1 = trace(A)

> sum2 = sum_ofAllElemetNonOn_theDiagonal;
>

sum2 = sum(sum(A)) - sum1

> is it possible to do it in a compact way? thanks
>

Dmitri.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]