I want grid lines for a plot but MATLAB automatically define the number of grid lines. Is there any way to manually define the number of grid lines for a plot?

# MATLAB: How to Display Grid Lines with Specific Distance from One Another

grid linesplot

###### Related Question

- Deletting X and Y axes ticks
- Is there a way to remove individual tick labels
- How to label the y-axes with a percent sign (%) in MATLAB
- How to modify “ax = axes(___)” function
- Remove gridline from plot
- How to have a graph with labeled x-axis ticks on the bottom and top of the graph
- How to show minor gridlines
- Grid on in subplot

## Best Answer