Answered step by step
Verified Expert Solution
Question
1 Approved Answer
im getting the wrong answer with the disp function in matlab, for question 13.b and 13.d i get another answer. Please show me the script
im getting the wrong answer with the disp function in matlab, for question 13.b and 13.d i get another answer. Please show me the script with the print function.
I really need the script for this exercises with the RIGHT DISPLAY FUNCTION.
*Im getting this now
(13.b) 7 5 0 14 -1 8 and for (13.d) 2 -3 0 7 5 14 -3 14 -6
11. Create three vectors: a) Use the three vectors in a MATLAB command to create a 34 matrix in which the rows are the vectors a,b, and c. b) Use the three vectors in a MATLAB command to create a 43 matrix in which the columns are the vectors a,b, and c. 12. 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. (Parts b,c, and d use the vector that was defined in part a.) a) a=0:2:6 b) b=[a a ] or b=[a,a] c) c=[a;a] d) d=[aa] or d=[a,a] 13. The following vector is defined in MATLAB: v=[2,7,3,5,0,14,1,10,6,8] 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=v(3:6) b) b=v([2,4:7,10]) c) c=v([9,3,1,10]) d) d=[v([1,35]);v([2,4,6]);v([3,6,9])] 14. Create the following matrix A:A=161127123813491451015 Use the matrix A to: a) Create a five-element row vector named va that contains the elements of the first row of A. b) Create a three-element row vector named vb that contains the elements of the third column of A. c) Create a eight-element row vector named ve that contains the elements of the second rows of A and the fourth column of A. d) Create a six-element row vector named vd that contains the elements of the first and fifth columns of A. 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 elementsStep 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