tags:

views:

36

answers:

0

Possible Duplicate:
Plotting data on time (date) axis in matlab

hi,

I have 2 column vectors in matlab (I imported the data from excel).

the first one is called textdata which contains a list of dates and times as string format:

textdata = 
  '1/11/2010 11:40:04 AM'
  '1/12/2010 11:40:04 AM'
  '1/13/2010 11:40:04 AM'

the second one contains a list of account balances respective to each date :

data =
  500.0000
  500.2800
  499.3500

I was trying to plot date VS account balance, so I tried :

>> plot(textdata,data)
??? Error using ==> plot
Conversion to double from cell is not possible.

Is it possible to make a plot using the dates as string for my x-variable in matlab?