Question: Create two row vectors: a = [3 9 -0.5 3 6. 1 5. -0.8 4] b = [12 -0.8 6 2 5 3 -7.4] (a)
a = [3 9 -0.5 3 6. 1 5. -0.8 4]
b = [12 -0.8 6 2 5 3 -7.4]
(a) Use the two vectors in a MATLAB command to create a 3 × 4 matrix such that the first row consists of elements 3 through 6 of vector a, the second row consists of elements 4 through 7 of vector a, and the third row consists of elements 2 through 5 of vector b.
(b) Use the two vectors in a MATLAB command to create a 6 × 2 matrix such that the first column consists of elements 2 through 7 of vector a, and the second column consists of elements 1 through 3 and 5 through 7 of vector b.
Step by Step Solution
3.20 Rating (167 Votes )
There are 3 Steps involved in it
Script file clear clc a3 9 05 36 15 08 4 b12 08 6 2 5 3 74 disp Part a ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
652-B-F-F-M (563).docx
120 KBs Word File
