blob: 7cb207893de47aa941545f831c74630b1d3ba363 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//Eg-1.16
//pg-35
clear
clc
a=[0.5 0.5 -0.5;0.5 1 -1;-1 0.5 0.5];
printf('The given matrix is \n\n')
disp(a)
printf('The program prints the elements of the matrix as the following\n\n')
for i=1:9
printf("a(%d) = %f\n",i,a(i))
end
|