help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: howto matrixes containing e.g. vectors and matrixes and matrix opera


From: Jordi Gutiérrez Hermoso
Subject: Re: howto matrixes containing e.g. vectors and matrixes and matrix operations
Date: Sun, 1 Jun 2008 10:13:19 -0500

On 01/06/2008, Schoeller Sebastian <address@hidden> wrote:
 >  is it possible to create a multidimensional array,


Sure, just index using more than two indices.

 E.g. m(:,1,1) = vector_1, m(:,2,1) = vector_2 and so on. You can then
 do m(:,1,1).*m(:,1,1). You may also be interested in the squeeze
 function.

 N-d arrays, as they are called, do seem to lose a lot of the benefits
 of vectorisation, unfortunately, or they did for me in the past, but
 as far as indexing goes, you can think of them as matrices or
 higher-order tensors.

 HTH,
 - Jordi G. H.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]