How to adjust the Grid size

조회 수: 99 (최근 30일)
zubair
zubair 2012년 3월 9일
hiii I need some help regarding the grid function. By using "Grid on" we get the grid of certain size. I want to change the size of the squares in the grid. In a 1200x1200 figure i want to have a grid whose squares are of side say 300. Also is it possible to do manipulations in a particular square of the grid eg a for loop which works only inside the square. thanks.

채택된 답변

Grzegorz Knor
Grzegorz Knor 2012년 3월 9일
Analyze this code:
plot(1:10000)
grid on
pause
set(gca,'XMinorTick','on')
grid minor
pause
set(gca,'Xtick',0:2000:10000)
grid off
grid on

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by