Question: Please complete all the questions thanks Using basic programming (for loops, while loops, and if statements), write two functions in Matlab, both taking as input:
Using basic programming (for loops, while loops, and if statements), write two functions in Matlab, both taking as input: dimension n -n n matrix A -n n matrix B -n 1 matrix x Have the first function compute ABx through (AB)x and the second compute A(Ba). Have both output: the number of flops used 1. Print out and turn in the first function 2. Print out and turn in the second function 3. Apply each algorithm for 100, 200, 400, 800. Which approach is better? Using basic programming (for loops, while loops, and if statements), write two functions in Matlab, both taking as input: dimension n -n n matrix A -n n matrix B -n 1 matrix x Have the first function compute ABx through (AB)x and the second compute A(Ba). Have both output: the number of flops used 1. Print out and turn in the first function 2. Print out and turn in the second function 3. Apply each algorithm for 100, 200, 400, 800. Which approach is better
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
