how to remove 0 while plotting the graph.

I want to plot the graph such that the x axis and y axis needs to start with 1.
I tried with the following command
xlim([1,12]);
ylim([1,12]);
set(gca,'XTick',[1:1:12]);
set(gca,'YTick',[1:1:12]);
But still i am getting 0 prior to 1 in graph.
could anyone help me how to start the plot with respect to 1 for both x and y axis.

3 comentarios

Rik
Rik el 23 de Mayo de 2019
These commands should work. Please provide a full working example that reproduces your issue.
Raj
Raj el 23 de Mayo de 2019
Works fine for me. See:
Capture.JPG
jaah navi
jaah navi el 23 de Mayo de 2019
I apologize for asking it,as it works perfectly.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 23 de Mayo de 2019

Comentada:

el 23 de Mayo de 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by