Matrix Operation: (6 2 3 - 6 - I) A (6,:) (3 4 8 1-I 1+i) A (3,4) 3i Abs (A (:,5) ) A (3:4,3:4)
Matrix Operation: (6 2 3 - 6 - I) A (6,:) (3 4 8 1-I 1+i) A (3,4) 3i Abs (A (:,5) ) A (3:4,3:4)
=
[
[1 2
4 1
-i]
+
]
a
[6 2 3 -6 -i]
ii
[ 3 4 8 1-i 1+i]
3i
iii
3
iv
v
vi
Solution:
>> a=[3 1 8 2 6+i;1 2 9 5 7-i;6 4 7 3 5+2i;0 0 0 0 6-4i;1 6 2 4 i];
>> a(:,2)=[1 2 4 1 -i]
>> a(1,:)= [6 2 3 -6 -i]
2 of 3 Computer application 2
Example: Determine the values of x1, x2, x3, x4 for the following set of linear algebraic
equations:
ceil(x)
floor(x)
rem(x,y)
sign(x,y)
3 of 3 Computer application 2
Example
>> round(20/6)
ans = 3
>> fix(13/6)
ans = 2
>> ceil(13/5)
ans = 3
>> floor(10/4)
ans = 3
>> rem(14,3)
ans = 2
>> sign(7)
ans = 1