Given matrices A= [9 12 13 0; 10 3 6 15; 2 5 10 3] and B=[1 4 2 11; 9 8 16 7; 12 5 0 3] provide short MATLAB commands to : a) Create matrix called C which is A and B on top of each other. b) Create matrix called D made up of first two rows of A and last two rows of B. c) Make 3rd column of C be the numbers from 1 to 6. d) Add 1 to just odd-index elements of A e) Create following matrix (i.e do not type values, write single-line matlab statement ) F = [3 0 0 4 4 0; 0 3 0 4 4 0; 0 0 3 4 4 0; 1 1 2 2 2 2]
Added by Kimberly G.
Close
Step 1
To create a matrix C which is A and B on top of each other, we can use the `vertcat` function: `C = vertcat(A, B);` Show more…
Show all steps
Your feedback will help us improve your experience
Supreeta N and 71 other Calculus 3 educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Given matrices A = [9 12 13 0; 10 3 6 15; 2 5 10 3] and B = [1 4 2 11; 9 8 16 7; 12 5 0 3] provide short MATLAB commands to : a) Create matrix called C which is A and B on top of each other. b) Create matrix called D made up of first two rows of A and last two rows of B. c) Make 3rd column of C be the numbers from 1 to 6. d) Add 1 to just odd-index elements of A e) Create following matrix (i.e do not type values, write single-line matlab statement ) F = [3 0 0 4 4 0; 0 3 0 4 4 0; 0 0 3 4 4 0; 1 1 2 2 2 2]
Adi S.
Given matrices A = [9 12 13 0; 10 3 6 15; 2 5 10 3] and B = [1 4 2 11; 9 8 16 7; 12 5 0 3], provide short MATLAB commands to: a) Create a matrix called C which is A and B on top of each other. b) Create a matrix called D made up of the first two rows of A and the last two rows of B. c) Make the 3rd column of C be the numbers from 1 to 6. d) Add 1 to just the odd-index elements of A. e) Create the following matrix (i.e., do not type values, write a single-line MATLAB statement).
Recommended Textbooks
Calculus: Early Transcendentals
Thomas Calculus
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD