help-octave
[Top][All Lists]
Advanced

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

Re: wildcard argument to load?


From: taltman
Subject: Re: wildcard argument to load?
Date: Mon, 17 Nov 2003 21:17:17 +0000 (UTC)

Hi Timon,

I think the following functions will make it very easy for you to
write a small loop to do the trick:

http://www.octave.org/doc/octave_30.html#SEC189

glob
fnmatch
file_in_path
tilde_expand

---

Good luck,

~Tomer


On Nov 17, 2003 at 9:06pm, Timon Schroeter wrote:

mailin >Date: Mon, 17 Nov 2003 21:06:09 +0100
mailin >From: Timon Schroeter <address@hidden>
mailin >To: address@hidden
mailin >Subject: wildcard argument to load?
mailin >Resent-Date: Mon, 17 Nov 2003 14:05:30 -0600
mailin >Resent-From: address@hidden
mailin >
mailin >Hi,
mailin >
mailin >first of all: Octave is great software, thank you!
mailin >
mailin >Is there any way to use a wildcard-character in an argument to "load"? 
I 
mailin >have a number of files I want to load one after the other. All 
filenames 
mailin >begin with a number, starting at one, going up to several hundred or 
mailin >even thousand. The numbers are followed by different strings. My plan 
mailin >was to use a loop to generate the numbers, turn them into strings using 
mailin >num2str and adding a wildcard like *. As each number between 1 and a 
mailin >certain uper limits exists and is unique it could work, but it doesn't. 
mailin >Obviously I could use a shell-script to rename all these files to have 
a 
mailin >constand string after the number, but if octave honors wildcards in 
mailin >filenames, I would prefer the first (more elegant) solution. Ideas?
mailin >
mailin >Timon
mailin >
mailin >



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



reply via email to

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