Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
dpb
Posts:
6,677
Registered:
6/7/07
|
|
Re: textscan: handling spaces in fixed-width data
Posted:
Jan 4, 2013 9:01 AM
|
|
On 1/3/2013 9:08 AM, dpb wrote: ...
> If you're comfortable w/ Fortran, in the past I've written mex-files > that use Fortran FORMAT statements to deal w/ the problem is another > workaround. ...
OBTW---in this case you would still have to have some extra processing to get the "empty" indicator over the default zero returned from the character substitution route shown earlier since Fortran returns 0 for a blank field.
So, in this particular case, there's no great advantage in the Fortran mex route but can be a big help in some cases to have a fixed-width field format string really mean fixed width per FORMAT definitions.
--
|
|
|
Date
|
Subject
|
Author
|
|
1/3/13
|
|
dpb
|
|
1/3/13
|
|
dpb
|
|
1/4/13
|
|
dpb
|
|
1/7/13
|
|
dpb
|
|
|