Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Scripts (1).pd Data (1) pdf 3. a. Create the 7x7 matrix B1, all elements of it s

ID: 3751539 • Letter: S

Question

Scripts (1).pd Data (1) pdf 3. a. Create the 7x7 matrix B1, all elements of it shall be O's. b. Create the 9x9 matrix B2, all elements of it shall be 3's c. Create the 5x5 matrix B3, with 1's at its diagonal and O's for the rest. d. Create the 4x4 matrix B4, with the values [1 3 3 7] at its diagonal and O's for the rest. e. f. g. h. Create the row vector B5, with 8 uniformly distributed random numbers. Create the column vector B6, with 5 normally distributed random numbers. Create the 7x5 matrices C1 and C2, by concatenating A3 and B3 in two different ways Create the 5x2 matrices C3 and C4, by concatenating A2 and B6 in two different ways.

Explanation / Answer

Sol: These are the MATLAB codes for the first four instructions:

a. B1=zeros(7,7);

b. B2=3*ones(9);

c. B3=eye(5);

d. v=[1 3 3 7];

B4=daig(v);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote