The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Read in a flat file, space delimited, NaNs as "."
Replies: 2   Last Post: Aug 7, 2012 12:35 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 79
Registered: 7/20/08
Read in a flat file, space delimited, NaNs as "."
Posted: Jan 23, 2012 7:30 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi Everyone:

I am having some difficulty trying to read in a file with the
following entries (actually a flat file produced by SAS). Note that
SAS writes "." instead of NaN for null values. There is no header and
I cannot edit the files on disk to replace the nulls appropriately.

Here is an example:

XXX1LZ1 2.66923195712975
XXX1NS1 -.42258512166855
XXX1OT1 0.03028640299762
XXX1UG1 -.09154710877974
XXX1W51 .
XXX1X31 .
XXX24N1 .
XXX28Z1 .
XXXAAC1 0.83949752862828
XXXAAH1 0.79328676386255

Honestly, any help is appreciated.



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.