Given the following C 1 3 152 3 07 0 9written in MATLAB Ide

Given the following C = [1 3 15;2 -3 0;-7 0 9]written in MATLAB Identify the result of each command (in sequence): >> D = C(1, 2:3) >> C(2, :) = [] >> D = C(:, 2) >> C(2:4) >> sum(C(2, :) = 0)

Solution

a ) 3 15

b)

1    3   15                                                                                                                                          

   -7    0    9

c)

D =

3                                                                                                                                                     

  -3                                                                                                                                                     

   0

d) 2  -7   3

e) 2

 Given the following C = [1 3 15;2 -3 0;-7 0 9]written in MATLAB Identify the result of each command (in sequence): >> D = C(1, 2:3) >> C(2, :) = []

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site