[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: creating a NxMxW matrix
From: |
Etienne Grossmann |
Subject: |
Re: creating a NxMxW matrix |
Date: |
Wed, 26 Apr 2000 07:57:49 GMT |
Hello,
octave (2.1.19, at least) does not support arrays with more than
2 indices.
==================================================================
I'm trying to create a matrix of (A,B,C)
using 3 for loops
for x=1:5,
> for Y=1:10,
> for Z=1:3,
> loop(x,Y,Z)=x*Y*Z
> end
> end
> end
I get the following error message:
error: invalid number of indices (3) for indexed matrix assignment
Can someone point me as to the proper way of creating this ?
==================================================================
Etienne
-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.che.wisc.edu/octave/octave.html
How to fund new projects: http://www.che.wisc.edu/octave/funding.html
Subscription information: http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------