point out a date in time series plot in matlab -
i have time series of daily prices, plotted , have days highlight little circle on curve of price on these days. example, time series spans 1-jun-2000 1-oct-2000 , have days 5-jun-2000, 6-jun-2000, 10-aug-2000,.. prices show on plot. problem series of days point out on different vector , not find them in series of days. think should @ first find indexes of these particular dates in complete series of dates , use index point out corresponding prices highlight on curve. help?
thank in advance
john
never mind, have got it:
[tf, index] = ismember(date, tofinddate) % position in series plot(date(index),p(index),'ro') % highlight desired point
Comments
Post a Comment