MAT LAB PROGRAM Computation using matrices To perform some arithmetic operations using matrices. - Code

Latest

programs

Thursday, November 10, 2011

MAT LAB PROGRAM Computation using matrices To perform some arithmetic operations using matrices.


1.     Computation using matrices


AIM:- To perform some arithmetic operations using matrices.

THEORY: - ‘MATLAB ‘itself means that matrix laboratory. To compute matrix multiplications, addition, inverse of the matrix etc of any order can be obtained easily.

PROGRAM: -

A= [ 1 2 3; 4 5 6; 7 8 9 ];
B= [ 2 3 4; 5 4 7; 1 1 1 ];
C= A * B
D= A’
D1=D+2
E= INV (A)
F= A(3,1:3)
G= A(1:3;1 )
H= G.*G
SUM (H)

RESULT: - Basic arithmetic operations on matrices were observed using MATLAB.












No comments:

Post a Comment