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, :) = [] 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, :) = []](/WebImages/45/given-the-following-c-1-3-152-3-07-0-9written-in-matlab-ide-1143516-1761613896-0.webp)