|
From: | David Bateman |
Subject: | Re: Sum of matrices |
Date: | Tue, 15 May 2007 12:28:37 +0200 |
User-agent: | Thunderbird 1.5.0.7 (Windows/20060909) |
address@hidden wrote:
Hi everybody,I would like ask you the following question: If we have 100 square matrices of order 5, is there a command or a program in Octave that performs the sum of these 100 matrices?Thank you.
How are the 100 matrices stored? The easiest way would by if the 100 matrices are stored as a 3-D 5-by-5-by-100 array, then "sum(A, 3)" will do exactly what you want.
D.
[Prev in Thread] | Current Thread | [Next in Thread] |