Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

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

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

Topic: fgetl misses first characters
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Joseph P Gray

Posts: 1
Registered: 12/7/04
fgetl misses first characters
Posted: Nov 8, 1996 5:08 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I'm trying to read in an ASCII file with . as missing data using
fgetl. For example:

1 2 3 . 5 6
4 2 . 5 7 8

when I use fgetl(fid) the first line reads well, but the
second line is usually missing the first three numbers. This
only happens when I am using a .m file.

Is there a way around this (or an easier way to read this type of
file in)?

Pat Gray
Department of Anthropology
University of Wisconsin-Milwaukee
Milwaukee, WI 53201

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

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.