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: FORTRAN writes, Matlab reads (not)
Replies: 2   Last Post: Jul 17, 1996 8:45 AM

Advanced Search

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

Posts: 1
Registered: 12/11/04
FORTRAN writes, Matlab reads (not)
Posted: Jul 10, 1996 12:09 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I am writing free format double precision numbers from a FORTRAN77
code. On an HP this produces:

5.620301869950883E-02 4.67501413717773 -.294649357843009
4.841167797181183E-02 5.52176019036051 -.505648682783363
4.475533534963239E-02 6.16055068675624 -.626646428003904

which Matlab reads in with : fscanf(in,'%f %f %f',[3 n]);

on a Sparc Ultra the "E" is replaced by a "D" and Matlab fscanf as Im
using it

This must be easy when you know how.. any suggestions gratefully
recieved (post
or email me).

Dr S. C. Chapman
Univ. of Warwick, UK

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.