Putting the following line between the plot-command line and the XTickLabel-command worked
set(gca, 'XTick',[1 2 3 4 5 6])
Does anybody know why Matlab uses 0.5 increments on the axis? Is this always a problem, so that one always has to use the extra command line listed above in cases like mine?