Question: 3 . Matrix variables. Make the following variables 2 ! 2 a . aMat = # a 9 x 9 matrix full of

3. Matrix variables. Make the following variables 2!2 a. aMat ="#" a 9x9 matrix full of 2s (use ones or zeros)2!210!00"0" b. bMat =# 050 # a 9x9 matrix of all zeros, but with the values "0"00!01[123454321] on the main diagonal (use zeros, diag).111!91212"92 c. cMat = a 10x10 matrix where the vector 1:100 runs down the # # " # 1020!100 columns (use reshape).NaN NaN NaN NaN d. dMat = NaN NaN NaN NaN a 3x4 NaN matrix (use nan)NaN NaN NaN NaN13-15 e. eMat =-2210-87 f. Make fMat be a 5x3 matrix of random integers with values on the range -3 to 3(First use rand and floor or ceil. Now only use randi)

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 Programming Questions!