Question: Need help with these on matlab. 3. Create a 3x5 matrix A full of random real-values and a 5x2 matrix B full of random, real-values.
Need help with these on matlab. 3. Create a 3x5 matrix A full of random real-values and a 5x2 matrix B full of random, real-values. Implement a matrix multiplication routine in a function, C = matrix, mult (A, B) using for-loops. Make the routine's matrices sizes generic. Calculate the matrix C-AB and display the matrices 4. Implement a matrix/vector multiplication routine in a function called, y = matrix-vector, mult (A, X) using only for-loops (there should be only 2 loops used). Make the routine's matrices sizes generic so it will work with a matrix of any size. Create a 5-element column vector x full of random real-values and a 3x5 matrix A full of random real-values. Calculate the matrix y = Ax and display the vectors and the matrices
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
