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: Graph ASCII file
Replies: 1   Last Post: Feb 22, 2013 10:43 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  

Posts: 9,850
Registered: 6/7/07
Re: Graph ASCII file
Posted: Feb 22, 2013 10:43 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 2/22/2013 9:32 AM, ieng100 wrote:
> I have an ASCII file that is 15000x7 and I wish to plot the first column
> on the x-axis and the fourth column on the y-axis while ignoring the
> other five columns. What is the code required to import the file and
> graph the two columns in MATLAB?

doc textscan % and friends or import wizard...


or if use textscan and x is a cell remember to dereference the cell
contents w/ {} in the call to plot()

doc plot

Read the "Getting Started" sections...


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.