[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error: only one index allowed for lists
From: |
Prasenjit Kapat |
Subject: |
Re: error: only one index allowed for lists |
Date: |
Mon, 3 Oct 2005 13:55:15 -0400 |
Dr. Tom,
> b = zeros([2,3,3]);
> b(:,:,1) = a{1}
> ...
> then b(1,1,:) is what you want. I have no idea if this works on 2.1.50.
your suspicion did materialize!!
> zeros([2,3,3])
warning: zeros (A): use zeros (size (A)) instead
ans =
0 0 0
Thanks
Kapat
-------------------------------------------------------------
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
-------------------------------------------------------------