force a number of tick marks in a matlab plot
February 20th, 2008 by Lawrence David
matlab will automatically calculate how many tick marks produce the most pleasing axes in a plot. however, if you know better, you can override these settings by commanding:
>> set(gca,’XTick’,[1:tick_number])