help-octave
[Top][All Lists]
Advanced

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

load numbers from a txt file


From: John W. Eaton
Subject: load numbers from a txt file
Date: Sun, 30 Dec 2007 11:41:13 -0500

On 30-Dec-2007, Jean-Marie Bonnaz wrote:

| Hello
| 
| 
| I am a complete beginner with octave and I have some problems. I usually run
| Matlab but I try to learn Octave.
| My problem is :
| I would like to read numbers in a text file (file.txt). In this file there
| are only numbers, spaces ... and no text.
| The numbers are arranged in columns and columns are separated by one space.
| 
| I don't know how to read this file with Octave in order to load the numbers
| in a matrix.
| 
| With Matlab I use the function 'read' but I don't know what is the
| equivalent function in Matlab.

Matlab has a function called read for this purpose?  Is it part of
some toolbox or a core function?  If it is a core function, that is
news to me.

Maybe you mean the load function?  It should be able to read a file
containing only numbers and whitespace.

jwe


reply via email to

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