how to start xlim from 2 rather than 1
1 回表示 (過去 30 日間)
古いコメントを表示
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
0 件のコメント
採用された回答
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 件のコメント
Ilham Hardy
2016 年 1 月 29 日
編集済み: Ilham Hardy
2016 年 1 月 29 日
What you meant is xtick..
set(gca,'xtick',[2:1:33]);
その他の回答 (0 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!