MATLAB: Putting a step in x axis

axisplotscalesetxtick

Hi,
I'm trying to put the x axis with a step of 50 nm, but the output is 0 to 350 nm instead of 0 to 3600 nm.
subplot(2,1,2);
plot(lambda./1e-9, t/1e-9);
grid on;
axis tight;
set(gca,'XTickLabel', 0:50:3600);
xlabel('Comprimento de Onda [nm]');
ylabel('Espessura mínima [nm]');
What I'm doing wrong?
Thanks!

Best Answer

%if true
set(gca,'XTicks', 0:50:3600);
xlabel('Comprimento de Onda [nm]');
ylabel('Espessura mínima [nm]');
Use XTicks
Related Question