3 Create the following matrices using inbuilt functions a 1

3. Create the following matrices using inbuilt functions.

a. 1 0 0

    0 1 0

    0 0 1

b. 1 1

    1 1

    1 1

    1 1

   

c. 0 0 0

    0 0 0

   0 0 0

Solution

>> A=eye(3)

A =

1 0 0
0 1 0
0 0 1

>> B=ones(4,2)

B =

1 1
1 1
1 1
1 1

>> C=zeros(3,3)

C =

0 0 0
0 0 0
0 0 0

3. Create the following matrices using inbuilt functions. a. 1 0 0 0 1 0 0 0 1 b. 1 1 1 1 1 1 1 1 c. 0 0 0 0 0 0 0 0 0Solution>> A=eye(3) A = 1 0 0 0 1 0

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site