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: 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,242
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]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.