Question: 42. The following matrix is defined in MATLAB: T = 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30
42. The following matrix is defined in MATLAB:
T =
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 By hand (pencil and paper) write what will be displayed if the following commands are executed by MATLAB. Check your answers by executing the commands with MATLAB.
(a) D=[T(1,1:4);T(3,2:5)]
(b) E=[T(:,4); T(2,:)']
(c) F(3:5,3:5)=T(1:3,1:3)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
