Hello everyone i'm having a problem, i'm trying to datetick de x_axis but since I have 768 points_data but i just need to datetick every 12 or 120 points (corresponding to years or decades). I've been for looking examples but i can't figured out my problem. does anyone can halp me?
n=rand(1,768); %data corresponding to monthly information for 64 years (from 1950 to 2013)
startDate = datenum('01-01-1950'); endDate = datenum('12-31-2012'); xData = linspace(startDate,endDate,768);