[Top][All Lists]

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

Re: [Help-gsl] Reading data from a file to a vector

From: Daniel
Subject: Re: [Help-gsl] Reading data from a file to a vector
Date: Sun, 25 Jan 2009 23:21:51 +0000


GSL doesn't provide this functionality. I probably have some code somewhere that does this I will have a look. In the mean time you could start with this,



On 24 Jan 2009, at 21:23, Ivan Pulido wrote:

Hey, I have a quick question, sorry if it's to "noob", but Im really new to
GSL and I've checked the manual and couldnt find the answer.

What I want to do is reading a plain text file with data in the format

x1 y1

x2 y2

... and such

So my doubt is how to read the first colum (xdata) and save it to a vector xdata[] and the same with the second column and ydata[]. Is there a way to do this with gsl_vector_fscanf function? I'd appreciate some help on this,
or at least some hints on what should I look for, thanks in advance.
Help-gsl mailing list

reply via email to

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