help-gsl
[Top][All Lists]
Advanced

[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

Hi,

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,
http://www.daniweb.com/forums/thread96707.html

Cheers,

Dan

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
address@hidden
http://lists.gnu.org/mailman/listinfo/help-gsl





reply via email to

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