[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Loading external parameters
From: |
Robert A. Macy |
Subject: |
Re: Loading external parameters |
Date: |
Mon, 19 Jun 2006 19:57:53 -0700 |
This was once talked about.
You can use the dates to get the archive emails...
* * copies of emails * * * * careful of the "wraparound"
From: "John W. Eaton" <address@hidden>
Subject: Loading multiple files
Date: Thu, 10 Mar 2005 23:57:41 -0500
To: address@hidden
Cc: address@hidden
On 11-Mar-2005, address@hidden
<address@hidden> wrote:
| I'd like to be able to read a large number of files into
Octave at once where
| the filenames only differ slightly - file_001.txt,
file_002.txt, etc. I've been
| using the following code:
|
| --------
| for i=1:10
| filename=strcat("file_",sprintf("%03d",i),".txt")
| eval(["load ",filename]);
| endfor
| --------
|
| to do this but it's obviously pretty slow due to the use
of the eval command.
| Is there a better way to do this?
Yes:
for i = 1:10
load (sprintf ("file_%03d.txt", i));
endfor
jwe
=-=-=-=
From: Paul Kienzle <address@hidden>
Subject: Re: Loading multiple files
Date: Thu, 10 Mar 2005 23:53:03 -0500
To: address@hidden
Cc: address@hidden
On Mar 10, 2005, at 11:40 PM, <address@hidden>
wrote:
Hi,
I'd like to be able to read a large number of files into
Octave at once where
the filenames only differ slightly - file_001.txt,
file_002.txt, etc. I've been
using the following code:
--------
for i=1:10
filename=strcat("file_",sprintf("%03d",i),".txt")
eval(["load ",filename]);
endfor
--------
Use load(filename) instead.
- Paul
On Mon, 19 Jun 2006 20:41:28 -0500
"Cederik León De León Acuña" <address@hidden> wrote:
> Hi all:
>
> i have an script form some calculations in octave, but y
> need to load an
> array of files, to precess it; so
> i want a text-file with -for example-
>
>
> "#Voltage,_ChA,_G1-1-impacto-6-6-2006.txt";
> "#Voltage,_ChA,_G1-2-impacto-6-6-2006.txt";
> "#Voltage,_ChA,_G2-1-impacto-6-6-2006.txt";
> "#Voltage,_ChA,_G2-2-impacto-6-6-2006.txt";
> "#Voltage,_ChA,_G3-1-impacto-6-6-2006.txt";
> "#Voltage,_ChA,_G3-2-impacto-6-6-2006.txt";
> .
> .
> .
>
> so, my script will be capable to read the file and assing
> it to a named
> array to be usable on it;
> any ideas or references on the mail-list related to this
> issue?
>
> regards
>
> --
> E. F. M. Cederik L. De León Acuña
> instituto de Física y Matemáticas
> U. M. S. N. H.
> H. E. P.
> address@hidden
> Tel: +52 (443) 312 68 45
> Cel: +52 (443) 136 83 36
> Morelia Michoacan
> México