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: help reading from a text file
Replies: 2   Last Post: Jul 26, 2012 4:44 AM

Advanced Search

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

Posts: 91
Registered: 8/31/11
help reading from a text file
Posted: Jul 25, 2012 4:32 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I am using textread to read values from a text file.
when i use the following command,

file = textread('1.txt','%s','delimiter','\n');
ans =
C0-3F-0E-90-EE-13 6 "NETGEAR" -63 11.75

I would want C0-3F-0E-90-EE-13,6,"NETGEAR"-63, 11.75 as a form a structure, instead of one variable.
I am not sure how to use the delimiter to get the same.

Can someone please help me on this.

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.