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

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

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

질문:

2019년 5월 23일

댓글:

2019년 5월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by