|
From: | Alasdair McAndrew |
Subject: | Re: Sum of matrices |
Date: | Mon, 16 Sep 2013 17:51:34 +1000 |
This only works of course if A is square; so that the number of rows of B is a multiple of the number of columns.sum(reshape(B,c,c,r/c),3)I'd use Ben's method, in two steps:[r,c] = size(B)
On Mon, Sep 16, 2013 at 8:04 AM, george brida <address@hidden> wrote:
Dear Octavers,Suppose we have 100 square matrices of order 50: A_1; A_2;...;A_100. We put these matrices in the following manner: B=[A_1;A_2;...;A_50]how we can write a program performing the sum of these matrices from the matrix B.Thank you_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave
[Prev in Thread] | Current Thread | [Next in Thread] |