a = rand(1,33);
bar(a(2:33))
Now i need xlimit for each lines and it should start from 2 and continue with 3 4 5 6.....33

 채택된 답변

Ilham Hardy
Ilham Hardy 2016년 1월 29일

0 개 추천

What do you mean by continue with 3 4 5 6 ... 333?
Perhaps something like this?
set(gca,'xlim',[2 33]);

댓글 수: 2

Stalin Samuel
Stalin Samuel 2016년 1월 29일
  • in the attached figure xlimits are 0 5 10 15 20 25 30 35 (here the interval is 5)
  • I need with interval 1(i.e. 2 3 4 5 6 7 8....33)
Ilham Hardy
Ilham Hardy 2016년 1월 29일
편집: Ilham Hardy 2016년 1월 29일
What you meant is xtick..
set(gca,'xtick',[2:1:33]);

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

제품

태그

질문:

2016년 1월 29일

편집:

2016년 1월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by