Question: A= 13 | -5 6 | 15 7 4 12) 0 10 2 13 8 11 5 4 1 Use MATLAB expressions to do the

A= 13 | -5 6 | 15 7 4 12) 0 10 2 13 8 11 5 4 1 Use MATLAB expressions to do the following. 1. Create a vector u consisting of the elements in the second column of A 2. Create a scalar a consisting of the element on the third row, second column of A 3. Create a 4x3 array B consisting of all elements in the second through fourth columns of A. 4. Create a 2x3 array C consisting of all elements in the first two rows and the last three columns of A. Note: do not enter the predicted result and store it in the vector name. Use colon (:) to address the submatrix. For example, in MATLAB, create a vector b to address the first column of A, MATLAB expression should be: >> b = A(:, 1) It will be considered wrong if you type the predicted result like below >> b = [3; -5; 6; 15] It will be considered wrong if you type the predicted result like below >> b = [3; -5; 6; 15] Script C Reset DO MATLAB Documentation 1 % Create A matrix WN 4 % Answer to part 1 7 % Answer to part 2 00 O 10 % Answer to part 3 % Answer to part 4 Run Script
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
