time=[1:1:24];interval_x_axis=0.5;set(gca,'XtickLabel',time(1:interval_x_axis:end))
% it gives "Warning: Integer operands are required for colon operator when used as index".
How can I show 1-1.5-2-2.5 on the x axis within plot?
plotxticklabel
time=[1:1:24];interval_x_axis=0.5;set(gca,'XtickLabel',time(1:interval_x_axis:end))
Best Answer