SNS Lab 01 SP 2020
SNS Lab 01 SP 2020
(EL-223)
LABORATORY MANUAL
Spring 2020
INTRODUCTION TO MATLAB
(LAB # 01)
Student Name: ______________________________________________
Verified by: Dr. Waqas bin Abbas, Dr. Shahzad Saleem Updated: Jan 19,2020
Introduction to MATLAB LAB 01
____________________________________________________________________________________________________________________________________________________________
1. Learning Objectives:
In this lab, you will learn:
The interface of MATLAB
Basic arithmetic operators
MATLAB variables
Matrix manipulation
2. Software Used:
MATLAB
3. Introduction:
Applications:
MATLAB is being used in multiple applications including:
i- Image Processing
ii- Communication systems
iii- Application development, including GUI
iv- Math and Computation
v- Algorithm development
vi- Modeling, simulation and prototyping
vii- Control Systems
viii- Robotics
Strengths of MATLAB
Starting MATLAB:
2. Command History:
Statements you enter in the Command Window are logged in the Command History.
In the Command History, you can view previously run statements, and copy and execute selected
statements.
Enter a command “commandhistory” in Command Window to see commands history.
3. Workspace Browser:
The MATLAB workspace consists of the set of variables (named arrays) built up
during a MATLAB session and stored in memory.
5. Current Folder:
It lists all the files that are available in current directory.
Q.1 Run the MATLAB help desk by typing doc. The doc provides a hypertext interface to the
MATLAB documentation. [1]
Q.4 Make sure that you understand the colon notation. In particular, explain in words what the
following MATLAB code will produce. [5]
a. 0:6
b. 2 : 4 : 17
c. 99 : -1 : 88
d. 2 : (1/9) : 4
e. pi * [ 0:0.1:2 ];