|
[Date Index]
[Thread Index]
[Author Index]
Re: how to make arrays from text file in mathematica??
- To: mathgroup at smc.vnet.net
- Subject: [mg97653] Re: how to make arrays from text file in mathematica??
- From: dh <dh at metrohm.com>
- Date: Wed, 18 Mar 2009 04:51:55 -0500 (EST)
- References: <gpnsh0$gs3$1@smc.vnet.net>
Hi,
simply try e.g.:
Import[filename, "Table"]
Mathematica is smart enough (version 7) to distinguish between strings
and values.
Danile
Nishant wrote:
> Hi
> Iv searched for this on the wolfram tutorials but could not find an answer to this.
> What I have to do is to convert a text file having a format like this:
> a b 123
> into a graph with a and b as the nodes and 123 as the weight..
> I thought of putting a and b in an array and 123 as the value and then creating a graph from it..the problem is Readlist would read each line as a separate record..and hence making an array out of it is seemingly difficult..
> What could be the solution??
>
Prev by Date:
Fitting using a custom function
Next by Date:
Re: how to make arrays from text file in mathematica??
Previous by thread:
how to make arrays from text file in mathematica??
Next by thread:
Re: how to make arrays from text file in mathematica??
|