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 个评论

These commands should work. Please provide a full working example that reproduces your issue.
Works fine for me. See:
Capture.JPG
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