Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need the the answers in script for matlab pls. 15. Create the following matrix B : B=1526124129618682431030 Use the matrix B to: a) Create
I need the the answers in script for matlab pls.
15. Create the following matrix B : B=1526124129618682431030 Use the matrix B to: a) Create a six-element column vector named ua that contains the elements of the second and fourth columns of C. b) Create a five-element column vector named ub that contains the elements of the third row of C. c) Create a nine-element row vector named uc that contains the elements of the second, fourth and fifth columns of C. d) Create a eight-element row vector named ud that contains the elements of the first column and first row of C. 16. Create the following matrix A : 0.114130.212160.310190.481120.560150.640180.72021 a) Create a 34 matrix B from the 1 st, 2 nd, and 3 rd rows, and the 1 st through the 4 th columns of the matrix A. b) Create a 27 matrix C from the 2 nd, and 3 rd rows, and all the columns of the matrix A. 17. The following matrix is defined in MATLAB: M=6426941412402154101842221434 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) A=M([1,3],[2,4]) b) B=M(:,[1,4:6]) c) C=M([2,3],:) 18. Using the zeros, ones, and eye commands create the following arrays: a) [000000111111] c) 10011001 19. Use the eye command to create the array A shown on the left below, Then, using the colon to address the elements in the arrays, change A to be like the one shown on the right. A=100000010000001000000100000010000001 A=100022010022001022333122333010333001 20. Create a vector v=[1,2,3,,35] with 35 elements. Then, use the reshape function to create a 57 matrix in which the first row is the numbers 1234 567 , the second row is the numbers 891011121314 , the third row is the numbers 15 through 21 , and so on. 21. Create a 33 matrix A in which all the elements are 1. Then, reassign A to itself such that A will become: A=111000111000111000000111000111000111Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started