|
From: | Alberto Frigerio |
Subject: | Re: Multidimensional matrix |
Date: | Thu, 5 Nov 2009 12:28:40 +0100 |
you could use a multi-index matrix
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 ?
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}in the second case you could use
*) How can I multiply two multidimensional matrices ?
cellfun (@(x,y) (x'*y), A, A, 'UniformOutput', false)
Thanks everybody,c.
Alberto
[Prev in Thread] | Current Thread | [Next in Thread] |