- 2D graphics
' Matlab Plot ' to home
Matlab includes fancy tools for visualization. Basic 2D plots, good 3D
graphics, and even animation possibilities are available in an easy
environment. The most basic and useful command for producing simple 2D
- Vertical Lines
We are going to create a simple Matlab function to add horizontal and
vertical lines to any given Matlab-created plot.
example, let's say that we need to add
some indications or annotations
to a plot, and we need to display and indicate some upper or lower...
draws pie plots of the data in the vector x. The values in x are
normalized via x/sum(x)
to determine the area of each slice of pie...
instruction in Matlab, without output arguments, produces a
bar plot of the results. The bar edges on the first and last
bins may extend to cover the min and max of the data unless a matrix of
data is supplied...
displays an animated comet plot of the vector a.
displays an animated comet plot of vector b vs a.
comet(a, b, p)
uses a comet of length p*length(b).
In this example, we study the 'stem'
instruction to illustrate another Matlab plot function. It draws
(with a little circle at the tip) proportional to the value of the
function at that particular horizontal value. 'stem'
does not join the circles with a line, and it is very helpful to stress
the fact that the function is, in fact, not continuous but discreet...
In this example we are going to demonstrate how to use the 'loglog' function
included in Matlab to produce logarithmic
axis. This term referrs to the fact that the plot is
logarithmically scaled in both axes...
that plot data in the polar
coordinates using magnitudes and angles. In this article we’ll discuss
the Matlab plot commands 'compass',
'polar' and 'rose'...
Curve - Gaussian distribution
The graph or plot of the associated probability
density has a peak at the mean, and is known as the
or bell curve...
animations in 2D
have some data representing a system or a function at several time
we may want to take advantage of Matlab’s simple animation capabilities...
Impulse Function -
is also known as the ‘Dirac
delta’ function, or δ function. In the
context of DSP it’s
often referred to as the ‘unit
impulse function’. Let's see how to tame it...
Heaviside Unit Step
Periodic Functions - Square
and Sawtooth waves
A periodic function
is a function that
repeats its values in
regular periods or intervals. We explore codes for square and sawtooth
waves without any special toolbox needed...
Summary of types of Plots
find samples of some 2D
drawing functions. Many of them take optional
arguments. These are just some ideas to give you basic understanding or
use these built-in functions..
It's a graphical tool designed for engineers specializing in RF to solve problems
related to transmission
lines and matching circuits...
'Matlab Plot' to home