Getting Started with MATLAB study notes 8

MATLAB plot (cont.)

Background grid

No matter what the graphics, plus the end of the grid on to add in the grid:
Here Insert Picture Description

title

End plus title ( '???') to:
Here Insert Picture Description

label

End plus the xlabel ( '???') , ylabel ( '???') to:
Here Insert Picture DescriptionTotal code is as follows:
Here Insert Picture Description

A plurality of window display of FIG.

subplot (x, y, z) can be understood as a function of dividing the window and positioned. x represents divided into several lines, y represents a column divided into several, z represents the number of target grid pattern as the position x * y output in the grid so much. Grid number from left to right, top to bottom rows.
Here Insert Picture Description

The final results as shown:
Here Insert Picture DescriptionIf the number of occupied lattice different :
Here Insert Picture Description
Here Insert Picture Description

surf (·) - do Surfaces

Here Insert Picture Description
Here Insert Picture Description
Y Similarly, the final result is as follows:
Here Insert Picture Description
the step to take smaller, the smoother

Released eight original articles · won praise 0 · Views 75

Guess you like

Origin blog.csdn.net/weixin_44964099/article/details/104447373