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

Posts: 9,850
Registered: 6/7/07
Re: Importing Data from Excel
Posted: Aug 26, 2013 4:12 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 8/26/2013 2:46 PM, Nicole wrote:
> 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)

Not clear yet precisely how the data are arranged other than dates are
in column 1 and weights in column 4. Are there thus 16 repeated dates
for the sixteen subjects or some other arrangement?


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.