[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multidimensional matrix
From: |
Carlo de Falco |
Subject: |
Re: Multidimensional matrix |
Date: |
Thu, 5 Nov 2009 10:48:03 +0100 |
On 5 Nov 2009, at 10:35, Alberto Frigerio wrote:
Hi everyone, I've some questions about multidimensional matrix.
*) It is possible to create (maybe using a list) a multidimensional
matrix
A, i.e. every element of A is not a number but a couple, triplet,
etc. of
numbers ?
you could use a multi-index matrix
A = rand (2,4,5);
A (:,2,4)
or a cell-array of matrices
for ii=1:4
for jj=1:5
A{ii,jj} = rand(3,1);
endfor
endfor
A {2,4}
*) How can I multiply two multidimensional matrices ?
in the second case you could use
cellfun (@(x,y) (x'*y), A, A, 'UniformOutput', false)
Thanks everybody,
Alberto
c.
Re: Multidimensional matrix, David Grundberg, 2009/11/05