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: Matrix export to text file not moving to next line
Replies: 1   Last Post: Dec 30, 2013 1:08 PM

Advanced Search

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

Posts: 9,850
Registered: 6/7/07
Re: Matrix export to text file not moving to next line
Posted: Dec 30, 2013 1:08 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 12/30/2013 9:12 AM, Tadgh wrote:

> A=[n, LST, TotalRadiation]

> fprintf(fileID,'%3f %2.2f %12.8f\r\n',A);
> fclose(fileID);
> The file is creating and opening correctly, the header is adding as it
> should but i am only getting one line of data in the txt file..


Internal storage order...

fprintf(fileID,'%3f %2.2f %12.8f\r\n',A');

NB: the '


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.