Lab01 307

You might also like

You are on page 1of 3

. LAB # 01 .

Objective:
Introduction to MATLAB
MATLAB is a multi-numerical computing and programming language that allows matrix
manipulations,plotting of functions and data and implementations of algorithms.

Classification:
There are two sections which are gives as follows:
1) M File.
2) Simulation

Experiment no 1

Objective

To access the matrices and also to access digits in matrices and to take transpose of a matrix.

To access the matrices :

To access the matrices you have to:

 Write the matrices in the MATLAB language in the command window.


 Write the numbers in the matrices one by one by pressing ‘space’ use the sign ‘;’.when
one row is completed
 After writing the matrices press “ENTER”.
 The output will be shown in the command window.

Figure 1.1

1
To access the digits in the matrices

To access the digits in the matrices you have to

 Write the matrices A and D in the MATLAB language in the command window.
 Press “ ENTER” after writing the numbers in the matrices
 Access the desired three digits from matrix A by writing the order of the digit correctly.
 Access the desired four digits from matrix D by writing the order of the digit correctly.

Figure 1.2

2
To take transpose of matrix

To take transpose of a matrix you have to

 Write matrix A in MATLAB


 To take transpose write “ A’ “
 And the output will show you the transpose of that matrix.

Figure 1.3

You might also like