Question: ( 10 points) Create each of the following matrices using a single line of code in the command window. (1) A 5-by 4 matrix A
( 10 points) Create each of the following matrices using a single line of code in the command window. (1) A 5-by 4 matrix A containing all zeros apart from -2s on the main diagonal, like what's shown below. (hint: eye) A=20000020000020000020 (2) A 6-by-6 matrix B with random integers ranging from [1-100], like what's shown below. (hint: use heip for randi built-in function)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
