You are using a very old version of Octave. If you are running on a
linux platform, packages should be available. Under windows, please
use the cygwin installer (as if you need more detail).
The code below works fine for me under 2.1.71.
Regards
Stéfan
On Tue, Feb 07, 2006 at 01:27:52PM +0100, Achim Graupner wrote:
Hi all,
I want to read a bunch of files in a directory. I Matlab I would do this
like
myfiles = dir('./*.dat')
myfiles =
4x1 struct array with fields:
name
date
bytes
isdir
as seen, myfiles is an array of struct containing all filenames, sizes etc.
in octave (2.1.50) I get the error message
myfiles = dir('./*.dat')
error: value on right hand side of assignment is undefined
error: evaluating assignment expression near line 11, column 2
in octave, myfiles does not get assigned.
-------------------------------------------------------------
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
-------------------------------------------------------------