Matlab Familiarisation
Matlab Familiarisation
A Hands-on Training.
BRIDGE COURSE
Course Prerequisite:
• Mathematical Foundations for Digital Signal
Processing
Course Outcome:
At the end of the course, students shall be able to:
• CO 1: Recognize and recall information learned during the
bridge course 'Mathematical Foundations for Digital Signal
Processing'. (Remember)
• CO 2: Understand and visualize the practical aspects of
Digital Signal Processing through Matlab. (Understand)
• CO 3: Apply their knowledge for numerical computations
using Matlab. (Apply)
Course Content:
• The what, why and how of Matlab
– What? (Brief introduction)
– Why? (Need/Applications)
– How? (Explained with practical examples)
• Operations on Vectors and Matrices
• Basic Matlab commands
• Built-in Matlab functions
• Creation of M-file
• Use of GUI
What is Matlab?
• Suitable for
– Math and computation
– Algorithm development (optimized for DSP)
– Data acquisition
– Modeling, simulation, and prototyping
– Data analysis, exploration, and visualization
– Scientific and engineering graphics
Menu and toolbar MATLAB Screen shot
workspace
type commands here
current directory
history
command window
Figure
Wokspace Window
Browser
Command
History
• MATLAB is so rich that ‘help’ is essential!
• To get started, select "MATLAB Help" from the
Help menu.
>> help for
separate window
Practical Examples
>>x=3.0;
>>y=x^2;
>>y
y =
9.0
>>
>>test
y =
9.0
>>
Function m-File
Keyword: function
Function Name (same as filename)
example y = sin(t)
the “plot” function alone
Title
Ylabel
Grid
Legend
Xlabel
Basic Matlab commands
Static
text
Pop-up menu
Axes static text
Frames
Checkbox Slider
Edit text
• http://ocw.mit.edu/courses/mathematics/18-s997-
introduction-to-matlab-programming-fall-2011/
• https://onlinecourses.nptel.ac.in/noc16_ch01/preview
• http://ocw.mit.edu/resources/res-6-008-digital-signal-
processing-spring-2011
• http://in.mathworks.com/academia/student_center/
tutorials/signal-processing-tutorial-launchpad.html?
s_tid=srchtitle
• http://nptel.iitm.ac.in/video.php?
subjectId=117102060
Test
1. Matlab program to find the sum of first n Fibonacci numbers.
2. Matlab program to find the sum of geometric series