Question: I need help with G and H 2. (A*m script file is required for this question) a. Use the zeros function in MATLAB to create

 I need help with G and H 2. (A*m script file

is required for this question) a. Use the zeros function in MATLAB

I need help with G and H

to create the 7x7 matrix B1, all elements of it shall be

O's. b. Use the ones function in MATLAB to create the 5x5

matrix B2, all elements of it shall be 3's. C. Use the

eye function in MATLAB to create the 5x5 matrix B3, with 1's

at its diagonal and O's for the rest. d. Use the diag

2. (A*m script file is required for this question) a. Use the zeros function in MATLAB to create the 7x7 matrix B1, all elements of it shall be O's. b. Use the ones function in MATLAB to create the 5x5 matrix B2, all elements of it shall be 3's. C. Use the eye function in MATLAB to create the 5x5 matrix B3, with 1's at its diagonal and O's for the rest. d. Use the diag function in MATLAB to create the 4x4 matrix B4, with the values [1, 3, 9, 27] at its diagonal and O's for the rest. Use the rand function in MATLAB to create the row vector B5, with 6 uniformly distributed random numbers. f. Create the column vector B6, with 5 normally distributed random numbers. g. Create the 7x5 matrices C1 and C2, by concatenating A3 and B3 in two different ways. Use the vertcat function in MATLAB. Create the 5x2 matrices C3 and C4, by concatenating A2 and B6 in two different ways. Use the horzcat function in MATLAB 22 linspace (9,1,5) 1 2 = ou un m 10 15 20 25 30 A3 = 1200 100 0 - 100 - 200 [10:5:30; 200:-100:-200] 200 200 B3 = eye(5) B3 = 1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 B6 = -0.4336 0.3426 3.784 2.7SHA -1,8499 g Create the 7x5 matrices C1 and C2, by concatenating A3 and B3 in two different ways. Use the vertcat function in MATLAB. h. Create the 5x2 matrices C3 and C4, by concatenating A2 and B6 in two different ways. Use the horzcat function in MATLAB

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!