load alldata.txt
tmp = num2str(alldata(:,1),'%08d%06d')
evtdates = datenum(tmp,'yyyymmdd')
x = evtdates
y = alldata(:,11)
scatter(x, y)
datetick('x')
I have however been trying with no success to visually divide the points up by colour. By this I mean for all points falling within -3<y<-2 to be one colour, -2<y<-1 to be another colour ect.
Can anybody help me with this problem? Is it best to group the data first before plotting and if so how do you group data by value?
Thank you for any feedback
Greg
Use HIST or HISTC to generate a vector of color indices and pass that into
SCATTER as the C input argument described in HELP SCATTER.
--
Steve Lord
sl...@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ