Вы находитесь на странице: 1из 3

UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA

FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING


COMPUTER ENGINEERING DEPARTMENT

Digital Image Processing


Lab Manual No 02
MATLAB Function Practice

Dated:
14th November, 2016 to 18th November, 2016

Semester:
Autumn 2016

Computer Application in Engineering Design


Session:-2015 Computer

Lab Instructor:-Engr. Aamir Arsalan

UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA


FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING
COMPUTER ENGINEERING DEPARTMENT

Lab Tasks:1. Type the following in the Command window:


>>y=16;
>>z=3;
>>y+z
Note! When you use a semicolon, no output will be
displayed. Try the code above with and without semicolon.
Note! Some functions display output even if you use
semicolon, like disp, plot, etc. Other basic operations are:
>>16-3
>>16/3
>>16*3
Try them.
2. Create a random vector with 100 random numbers between 0
and 100. Find the minimum value, the maximum value, the
mean and the standard deviation using some of the built-in
functions in MATLAB discussed in the class.
3. Type the following vector in the Command window:

Type the following matrix in the Command window:

Type the following matrix in the Command window:

Use MATLAB to find the value in the second row and the
third column of matrix.
Use MATLAB to find the second row of matrix.
Use MATLAB to find the third column of matrix.

Computer Application in Engineering Design


Session:-2015 Computer

Lab Instructor:-Engr. Aamir Arsalan

UNIVERSITY OF ENGINEERING AND TECHNOLOGY, TAXILA


FACULTY OF TELECOMMUNICATION AND INFORMATION ENGINEERING
COMPUTER ENGINEERING DEPARTMENT

4. In this task we will practice on entering matrices and


perform basic matrix operations.Given the matrices.

Solve the following basic matrix operations using MATLAB:

Use MATLAB to prove the following:

5. Given the equations:

Set the equations on the following form:


Find A and b and define them in MATLAB.
Solve the equations, i.e., find , using MATLAB. It can
be solved like this:

Computer Application in Engineering Design


Session:-2015 Computer

Lab Instructor:-Engr. Aamir Arsalan

Вам также может понравиться