• The script should generate a solution by the cramer method, sim ple gauss, gauss jordan, and LU decomposition for an nxn matrix • The program should not ask the user for information • You cannot use the built-in functions in matlab to solve these problems like (rref(), LU(),inv(), ... etc) • For cramer it is possible to use the det() function • they must use the tic toc function to know the calculation time • The script should generate a matrix with the solution for the 4 methods in the following order row 1 cramer, row 2 simple gauss, row 3 gauss seidel, row 4 LU decomposition. At the end of each row they must place the calculation time of each method. • The main matrix should be called A and its solution vector B, these matrices can be generated randomly with rand() or magic() • The code must be fully commented
• The script should generate a solution by the cramer method, sim ple gauss, gauss jordan, and LU decomposition for an nxn matrix
• The program should not ask the user for information
• You cannot use the built-in functions in matlab to solve these problems like (rref(), LU(),inv(), ... etc)
• For cramer it is possible to use the det() function
• they must use the tic toc function to know the calculation time
• The script should generate a matrix with the solution for the 4 methods in the following order row 1 cramer, row 2 simple gauss, row 3 gauss seidel, row 4 LU decomposition. At the end of each row they must place the calculation time of each method.
• The main matrix should be called A and its solution
• The code must be fully commented

Step by step
Solved in 2 steps









