[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 3 dimensional arrays/matrices
From: |
taltman |
Subject: |
Re: 3 dimensional arrays/matrices |
Date: |
Wed, 26 Nov 2003 22:45:45 +0000 (UTC) |
If you need this for some sort of tensor math, then the >= 2.1.51
Octave should be able to create & manipulate N-d matrices.
If all you need is a data structure to store a "list" of matrices,
then a cell array will suffice:
MatrixList = { rand(1), rand(2), rand(3) };
And you can index this list in various ways:
MatrixList{1,1}
MatrixList(1,1)
Explore; cell-arrays are really cool! :-)
Cheers,
~Tomer
On Nov 26, 2003 at 3:36pm, Daryl Warkentin wrote:
warken >Date: Wed, 26 Nov 2003 15:36:27 -0600
warken >From: Daryl Warkentin <address@hidden>
warken >To: address@hidden
warken >Subject: 3 dimensional arrays/matrices
warken >Resent-Date: Wed, 26 Nov 2003 15:37:35 -0600
warken >Resent-From: address@hidden
warken >
warken >Is there a way to create 3 dimensional arrays in octave? A vector of
warken >matrices.
warken >
warken >
warken >
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------