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

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