Javatpoint Logo
Javatpoint Logo

MATLAB 2-D Plots

There are many specific graphics functions for 2-D plotting. They are used as alternatives to the plot command we have just discussed. MATLAB help desk lists more than 20 types of two-dimensional plots. Examples include stem plots, stair plots, bar plots, pie plots, and compass plots.

Here we are going to discuss the 2D plotting function in MATLAB.

MATLAB fplot()

It is used to plot between the specific limit. The function must be of form y=f(x), where x is the vector whose specifies the limits, and y is the vector with the same size as x.

Syntax

Example

Output:

MATLAB fplot()
Next TopicMATLAB Semilogx()




Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA