help-octave
[Top][All Lists]
Advanced

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

Re: New to Octave...


From: Tristan Quaife
Subject: Re: New to Octave...
Date: Tue, 15 Aug 2000 09:55:33 +0100

Vincent,

Ben has already supplied you with an fine answer, but I thought
I'd add a suggestion. If you can get hold of Kurt Hornik's
octave-ci package, it supplies you with a function called
aload which allows you to directly load in data files without
the octave header information. Your script would then become:

file_in=input("Enter the full name of the input file? ", "s");
var=aload(file_in);
l=length(var); 
b=fft(var);

You can get octave-ci from:

ftp://ftp.ci.tuwien.ac.at/pub/octave/octave-ci.tar.gz. 

Hope this helps,

Tristan.


Vincent von Kaenel wrote:
> 
> Hello,
> I'm a new user of octave, so excuse my simple question.
> I have something like that in one of my script file for octave:
> 
> file_in=input("Enter the full name of the input file? ", "s");
> load (file_in);
> l=length(???); # I'd like the length of the matrix I just loaded here
> b=fft(???); # I'd like to take the fft of the matrix just loaded but I do
> not know the name of the variable...
> 
> The "input file" contains  x y data like:
> 
> 0 1
> 1 2
> 3 4
> 4 8
> ...
> 
> I would like to load this file in a specific variable name so that I can
> get the length of the matrix and process it. How can I do that when
> file_in may have different values?
> 
> Thank you!
> 
> Vincent
> 
>  **********************************
> Vincent von Kaenel
> email: address@hidden
> 
> -----------------------------------------------------------------------
> 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
> -----------------------------------------------------------------------



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



reply via email to

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