Академический Документы
Профессиональный Документы
Культура Документы
SSUET/QR/114
LAB # 1
AN OVERVIEW OF MATLAB
Objective
An Introduction to MATLAB.
Theory
1 MATLAB ENVIORNMENT
Matlab stand for Matrix laboratory.
Matlab was originally written to provide easy access to matrix software.
Matlab is a high performance language for
Technical computing integrator computations.
Visualization and programming.
Easy to use environment where problem and solution are expressed in
mathematical rotation.
Matlab usage
In Universities.
In Industry.
Matlab features a family of add-on application specific solution called
tool box.
Tool boxes are comprehensive collection of matlab (M-files) that extends
the matlab environment to solve particular classes of problems.
Add on tool boxes for
Signal processing
Control system
Neural networks
2 MATLAB SYSTEM
It includes.
1
DESKTOP TOOLS AND DEVELOPMENT ENVIRONMENT:
It includes.
Matlab desktop and command wind.
An editor and debugger.
CE-302:Signals and Systems
SSUET/QR/114
A code analyzer.
Browsers for viewing help.
The work space files and folder.
2
MATHEMATICAL FUNCTION LIBRARY
Collection of computational algorithm ranging from elementary functions
like sum , sine , cosine and others.
More Sophisticated functions like,
Matrix.
Inverse Matrix.
Z and Z transform.
Fourier transforms.
DTFT, IDTFT, FFT, DFT, etc.
3
THE LANGUAGE
Matlab language is a high level matrix/array language with control
flow statements function, data structure and object oriented
programming language.
GRAPHICS
Matlab has an extensive facility for displaying vector and matrices as
graph.
It include high level functions for two dimensional and three
dimensional data visualization, image processing animation and
presentation graphics.
EXTERNAL INTERFACE
The external interface library allows you to write C and FORTRAN
program that interact with matlab.
DOCUMENTATION
See matlab help manual
SSUET/QR/114
4.Command Window
This window is used to enter variables and run functions and Mfiles.
For more information, click the Help button.
5.Command History
In this window, we can view previously used functions, and copy and
execute selected lines.
Help browser
The Help browser is used to search and view documentation for all your
Math Works products.
To open the Help browser, click the help button in the toolbar, or Type
helpbrowser in the Command Window.
6. MATLAB Workspace
3 BASIC OPERATION
OPERATORS
SYMBOLS
EXAMPLE
Addition
3+2
Subtraction
2.4-16.5
Multiplication
3.14*6
Division
Exponentiation
\ or /
15.4/7 or 7\19.4
2^8
CLASS ACTIVITY
Objectives
4+12+144-36-10*18/12 ?
10*14+18-188*14/24 ?
2^10 ?
4
S. NO.
ITEM
QUANTITY
UNIT COST
1.
Pen
40
10
2.
Stapler
20
40
3.
Eraser
45
4.
Paper rim
350
5.
Pencil
100
i
ii
HOME TASK
Objective
Program
display('MARK SHEET OF THREE SUBJECTS')
display('Enter your subject marks')