Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need the codes for these questions in Matlab. If possible with a step to step explanation. Please also let me know what function i

image text in transcribed

I need the codes for these questions in Matlab. If possible with a step to step explanation. Please also let me know what function i should use for displaying ( print or disp)

Thank you!

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 elements

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Neo4j

Authors: Gregory Jordan

1st Edition

1484200225, 9781484200223

More Books

Students also viewed these Databases questions