How to adjust the Grid size

309 次查看(过去 30 天)
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 中查找有关 Debugging and Analysis 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by