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: Importing Data from Excel
Replies: 1   Last Post: Aug 26, 2013 4:12 PM

Advanced Search

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

Posts: 1
Registered: 8/26/13
Importing Data from Excel
Posted: Aug 26, 2013 3:46 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello,

I have a 3831x12 data set in Excel that I'm trying to import into Matlab. I'm trying to plot(x,y) with x being the date (1st column) and y being the weight (fourth column). However, each day I have 16 different subjects, who each need their weight plotted against the date. Therefore, I want to import every 16 cells for y. How can I do this? Right now my code is simply:

x=TrainingDoc(:,1)
y=TrainingDoc(:,4)
plot(x,y)

(If you can't tell, I'm new to MATLAB.)

-Nicole



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.