MATLAB: Divide image of block

blockImage Processing Toolbox

I have a image below ,plz tell how to divide like this http://imgur.com/sc6eIJ5 plzzzzzzzzz i need to draw lines over blocks,it may be 12×12 or 64×64,kindly assist help in coding.

Best Answer

"grid on displays the major grid lines for the current axes or chart returned by the gca command. Major grid lines extend from each tick mark."
You can use xticks() and yticks() to specify the position of the x ticks and y ticks (which in turn will be the positions the grid lines are drawn.) You can use xticklabels() and yticklabels() to set the tick labels to empty so that there will only be the grid lines.