フィルターのクリア

plot grid

6 ビュー (過去 30 日間)
Ahsan Khan
Ahsan Khan 2012 年 4 月 28 日
Hi there, How do i set the grid so each grid cell increments by one. example x axes => 0:100. when i plot the grid increments by 5... 0 5 10..etc i want it to be 0 1 2 3 4 5...how do i do that. thnx

採用された回答

Wayne King
Wayne King 2012 年 4 月 28 日
Are you sure you want to do that? You won't be able to see the xticklabels even if you make the font really small.
Here is an example with just 0:49
plot(randn(50,1))
set(gca,'xtick',0:49);
set(gca,'fontsize',6); grid on;
If you don't want labels
plot(randn(100,1))
set(gca,'xtick',0:99); set(gca,'xticklabel',[]);
grid on;
  1 件のコメント
Ahsan Khan
Ahsan Khan 2012 年 4 月 28 日
thnx

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by