Author Topic: minor issue with the format statement in outp command  (Read 3399 times)

M. Kurdi

  • Full Member
  • ***
  • Posts: 149
minor issue with the format statement in outp command
« on: May 20, 2014, 03:11:53 PM »
The format statement for outputting the mass, stiffness and damping matrices results (subroutines psmass.f and pptang.f) in the numbers having data exponent of type "d". In loading these files in Matlab or Octave using "load TANG_001" for example results in truncating the exponent from the values (this is of course wrong). I found that replacing "d" with "e" in the format statement in these subroutines resolves this issue and makes their loading in Matlab correct.

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: minor issue with the format statement in outp command
« Reply #1 on: May 20, 2014, 10:09:51 PM »
How so?  I don't know about Octave but Matlab ceratinly understands d as well as e.
Code: [Select]
>> type kk.dat

1.d0 2.e0
>> load kk.dat
>> kk
kk =
     1     2
>> j = 1.2d+3
j =
        1200

M. Kurdi

  • Full Member
  • ***
  • Posts: 149
Re: minor issue with the format statement in outp command
« Reply #2 on: May 22, 2014, 05:14:48 PM »
You are correct this is an Octave issue. Thanks for trying out.