Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

WORKSHEET 3: SCILAB MATRICES

𝟏 −𝟑 𝟐 𝟏 𝟑 𝟐
1. Let 𝑨 = [𝟑 𝟏 𝟏]and 𝑩 = [𝟎 𝟏 𝟐].
𝟔 −𝟔 𝟑 𝟖 −𝟐 𝟑
Find:
a. 𝑨𝟐 𝑩𝑻
b. 𝟐𝑨−𝟏 − 𝟑𝑩−𝟏
c. |𝟑𝑩−𝟐 𝑨𝑻 | or |𝟑𝑩𝟐 𝑨𝑻 |

Command Output

2. Let 𝒗 = [𝟒, −𝟐, 𝒂, 𝟎, 𝟖]and 𝑨 = [𝟏, 𝒃, 𝟒, 𝟎; −𝟏, 𝒄, 𝟑, 𝟐; 𝟑, 𝟏, 𝒅, −𝟓].


Use a= 1, b= 2, c= 3, d= 4
Determine the output of the following:
a. v(5)
b. v(2:4)
c. A(2,4)
d. A(3,2)
e. A(:,3)

Command Output

3. Let 𝑨 = [𝟏, −𝟏𝟎, 𝟔, 𝒂; 𝟕, 𝟐, 𝒃, −𝟏𝟏; 𝒄, 𝟎, 𝟎, −𝟖; 𝟏, 𝟑, 𝒅, 𝟔].


Use a= 5, b= 6, c= 7, d= 8
Find
a. sum(A) b.max(A) c. min(A) d. size(A) e. diag(A)

Command Output

4. Let 𝒗 = [𝟒, −𝟐, 𝒂, 𝟎, 𝟖]and 𝑨 = [𝟏, 𝒃, 𝟒, 𝟎; −𝟏, 𝒄, 𝟑, 𝟐; 𝟑, 𝟏, 𝒅, −𝟓].


Use a= -1, b= -2, c= -3, d= -4
Determine the output of the following:
a. v(5)
b. v(2:4)
c. A(2,4)
d. A(3,2)
e. A(:,3)
5. Evaluate the determinant of the following matrices:

𝟏 𝟐 𝟑 𝟏 𝟎 𝟏
𝑨 = [𝟒 𝟓 𝟔] 𝑩 = [𝟎 𝟐 𝟎]
𝟕 𝟖 𝟗 𝟑 𝟒 𝟓
6. Use rref and det to determine whether the following matrices A is singular or
nonsingular

a. 𝑨 = [𝟏 − 𝟏 𝟐; 𝟎 𝟐 𝟏; 𝟏 𝟎 𝟎]
b. 𝑩 = [𝟏 − 𝟏 𝟐; 𝟐 − 𝟐 𝟒; 𝟑 − 𝟒 𝟏]

7. Determine which of the following matrices are nonsingular.


𝟏 𝟐
a. 𝑨 = [ ]
−𝟐 𝟏
𝟏 𝟐 𝟑
b. 𝑩 = [𝟒 𝟓 𝟔]
𝟕 𝟖 𝟗
𝟏 𝟐 𝟑
c. 𝑪 = [𝟒 𝟓 𝟔]
𝟕 𝟖 𝟎

Commands Output

You might also like