[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: load problems
From: |
courtois |
Subject: |
Re: load problems |
Date: |
Wed, 2 Aug 2000 17:55:34 +0200 (CEST) |
why not do this:
system(['cp -f ' Name1 ' tmp.wav']);
load -ascii tmp.wav ;
EXTRACT YOUR DATA HERE e.g. :
eval(['x' Name1 '=tmp;']); clear tmp;
system('rm tmp.wav'); % Not necessary
?
On 2 Aug, Ben Sapp wrote:
> I have a lot of ascii files with names like 10n14.wav, 12s20.wav,
> 15s6.wav that have data I want to look at in Octave. The file has one
> value per line. The problem is the name of the file. Octave loads the
> variable into memory as 10n14 and the like. Then if I try to operate on
> the data like so,
>
> wave_forms = reshape( 10n14 ,500,max(size(10n14))/500);
> or
> temp = 10n14;
>
> I get a parse error. I tried to get octave to name the variables
> something different with,
>
> load "9n6b.wav" temp
>
> but, it reports the following message:
> warning: load: loaded ASCII file `9n6b.wav' -- ignoring extra args
>
> I thought from the documentation that this would read "9n6b.wav into
> temp. Renaming the files is unacceptable. Is there any easy
> workaround?
>
> I am using Octave 2.1.30 on IRIX 6.5
>
> Thanks.
>
--
Francis
=========================================================================
Dr. Francis COURTOIS I ENSIA - INRA
I 1, avenue des Olympiades
Food Process Control Lab. I 91744 MASSY Cedex
Food Engineering Department I FRANCE
-----------------------------------I Tel : (+33) (0) 1 69 93 51 29
mailto:address@hidden I Fax : (+33) (0) 1 69 93 51 85
http://ensia.inra.fr/þcourtois I Cell: (+33) (0) 6 84 13 73 92
==========================================================================
-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.che.wisc.edu/octave/octave.html
How to fund new projects: http://www.che.wisc.edu/octave/funding.html
Subscription information: http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------
- load problems, Ben Sapp, 2000/08/02
- Re: load problems,
courtois <=