How to adjust Grid limits

3 ビュー (過去 30 日間)
Juan Rosado
Juan Rosado 2012 年 8 月 30 日
回答済み: mouihbi chaker 2013 年 10 月 26 日
I am trying to match each point in the x axis with the y axis.
I am proceding the following way:
t = datenum(now):.5:datenum(now)+ 6
x = sin(t)
plot(t,x,'-ro')
datetick('x',2,'keepticks');
grid on
I want to keep the grid lines and add other grid lines highlighted with different colors marking the corresponding x value and y value in the graph.
Can you please help?

回答 (3 件)

Alex
Alex 2012 年 8 月 30 日
You need to play with the XTick and YTick axes properties.
set(hFig, 'XTick', [1 10 20 ....])

mouihbi chaker
mouihbi chaker 2013 年 10 月 21 日
Can you help me to place nodes (points) in an orderly manner and regularly spaced rows and columns oubien in each square of the grid please
  2 件のコメント
Cedric
Cedric 2013 年 10 月 21 日
編集済み: Cedric 2013 年 10 月 21 日
If you were defining precisely what you want in the main thread of your question, you would get an answer.
mouihbi chaker
mouihbi chaker 2013 年 10 月 25 日
I want to place 4 nodes in each square ?! thanx

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


mouihbi chaker
mouihbi chaker 2013 年 10 月 26 日
I work with the LEACH routing protocol in a network of sensor I want implemented nodes with the model grid who can help me please

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by