Week-02: Experiment # 02 (S&S)
Experiment # 02
Demonstrate the use of MATLAB Graphics and Implementation of Basic Signals in MATLAB.
Objective
This lab provides an introduction to line specification commands to alter line color, marker symbol, marker style. The lab also provides an introduction to basic signals like unit step and unit impulse signal and how they are made.
Apparatus
Pc having MATLAB
Theory
Graphics objects are the basic elements used to display graphs. When a plotting function is called, MATLAB® creates the graph using various graphics objects, such as a figure window, axes, lines, text, and so on. Each object has a fixed set of properties, which you can use to control the behavior and appearance of the graph.
Common Graphics Objects
When you call a function to create a graph, MATLAB creates a hierarchy of graphics objects. For example, calling the plot function creates the following graphics objects:
· Figure — Window that contains axes, toolbars, menus, and so on.
· Axes — Coordinate system that contains the object representing the data
· Line — Lines that represent the value of data passed to the plot function.
· Text — Labels for axes tick marks and optional titles and annotations.
Different types of graphs use different objects to represent data. Because there are many kinds of graphs, there are many types of data objects. Some are general purpose, such as lines and rectangles and some are highly specialized, such as legends etc. Plotting functions can return the objects used to create the graph.