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: text file data into matrix format
Replies: 10   Last Post: Dec 18, 2012 12:01 AM

Advanced Search

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

Posts: 8,982
Registered: 6/7/07
Re: text file data into matrix format
Posted: Dec 12, 2012 10:48 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 12/12/2012 9:37 AM, ali wrote:

> After 450 lines the format of the lines become
> x=-113, y= 454, z= 37
> Which shows the space between = sign and the number is filled up with
> signs. I tried strfind but did not work
> Now I want your advice about the general solution of this text file


use a format string that matches...

fmt=['x=%f, y=%f, z=%f'];


Or, textscan to return a cell...


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.