help-octave
[Top][All Lists]
Advanced

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

Re: Parse a directory


From: Bill Denney
Subject: Re: Parse a directory
Date: Tue, 7 Feb 2006 13:39:37 -0500 (EST)

Just so that you know, I think that Stefan meant "ask if you need more detail".

Bill

On Tue, 7 Feb 2006, Stefan van der Walt wrote:

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


--
"[The] fix that is described in this article may be compromised. For more
information about how this fix may be compromised, see the 'More
Information Section' of this article."
  -- http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q330080

reply via email to

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