Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

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

 Messages: [ Previous | Next ]
 dpb Posts: 9,850 Registered: 6/7/07
Re: Importing Data from Excel
Posted: Aug 26, 2013 4:12 PM

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?

--

Date Subject Author
8/26/13 Nicole
8/26/13 dpb