How to adjust Grid limits

조회 수: 4 (최근 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 CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by