Question: (b) (Use the 'rand or 'randi functions in Matlab for creating random numbers). scalar c. (In all of them the random numbers should be between

(b) (Use the 'rand or 'randi functions in Matlab for creating random numbers). scalar c. (In all of them the random numbers should be between -11 and 2). (c) Using colon notation, replace the 3rd column of matrix A by the elements of (d) Use the new A matrix from part 2.c. Combine matrix A and vector b and create Create a random 3x3 matrix A, a random 3x1 column vector b, and a random vector b a combination matrix B in which the first three rows are the same as matrix A and the forth row is composed of the elements of vector b. (e) Create another 4x3 matrix C with random numbers between 5 and 9 (f) Calculate matrix D which is element by element division of C divided by B. (g) Using period notation, raise each element of vector b to the power of c (the random scalar created in part 2.b) and store the results in new vector e. (h) Save all the variables in a .mat file called p2Result.mat. (6) Save matrices B and D, and vectors b and e in a.txt file called data.txt 6) Print everything and submit in class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
