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: How Convert TXT data format to MAT data format
Replies: 9   Last Post: Dec 26, 2012 5:53 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
gorkemsvs@gmail.com

Posts: 4
Registered: 12/25/12
Re: How Convert TXT data format to MAT data format
Posted: Dec 26, 2012 5:20 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Thanks for helping.



fid = fopen('mydata.txt');
C = textscan(fid, '%s%s%f32%d8%u%f%f%s%f');
fclose(fid);


the code ,that you gave me which was wroten at the top of this sentence,is only used for matrixes which columns and lines are specific. but I have a lot of matrixes which have different numbers of columns and lines in my textscan. So I need a code which can sense all different types of matrixes automatic.

Thank you for all helping.




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

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