how to start xlim from 2 rather than 1

1 回表示 (過去 30 日間)
Stalin Samuel
Stalin Samuel 2016 年 1 月 29 日
編集済み: Ilham Hardy 2016 年 1 月 29 日
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 日
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 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by