ax.box = 'on'; in matlab

To turn on the axis box in MATLAB, you can use the following command:

main.m
ax = gca; % get the current axes handle
ax.Box = 'on'; % turn on the axis box
78 chars
3 lines

This will set the Box property of the current axes handle ax to 'on', which will display the box around the axis. You can further customize the appearance of the axis box using other properties, such as LineWidth and LineStyle.

related categories

gistlibby LogSnag