help-octave
[Top][All Lists]
Advanced

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

Re: reading matrix of unknown dimensions from file.


From: Paul Kienzle
Subject: Re: reading matrix of unknown dimensions from file.
Date: Mon, 1 Jul 2002 08:52:52 -0400

On Mon, Jul 01, 2002 at 10:11:50AM +0200, Martijn Brouwer wrote:
> Hi,
> I often have to read measurement data consisting of three columns.
> Sometimes they are stored in a three column file, sometimes in the first
> 3 columns of a 7 column file. Until now I am using
> fscanf(fid,"%f",[N,Inf]) to read these data,which has the disadvantage
> that I have to adjust the value of N to the file I want to read.
> Is there a possibility to read a matrix with unknown dimensions from
> file? I MatLab you can do this simply with load('filename') and in
> scilab with read('filename'). I would highly appreciate this
> possibility.
> I am using 2.0.16

I don't know about 2.0.16, but in 2.1.35 you can use

x = load('filename')

Paul Kienzle
address@hidden



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