help-octave
[Top][All Lists]
Advanced

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

creating a NxMxW matrix


From: Francisco Rojas
Subject: creating a NxMxW matrix
Date: Tue, 25 Apr 2000 16:11:00 -0700 (MST)

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 ?

Francisco Rojas
University of Arizona, Tucson, Arizona
Electrical and Computer Engineering Department
E-MAIL: address@hidden
OFFICE: ECE 408, 520.621.4554
FAX   :          520.621.8076
WEB: http://www.ece.arizona.edu/~rojas



-----------------------------------------------------------------------
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
-----------------------------------------------------------------------



reply via email to

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