Question: A student produced the following script, egnsolver. m, in response to a programming assignment to create a script that would solve a set of linear
A student produced the following script, egnsolver. m, in response to a programming assignment to create a script that would solve a set of linear equations given an augmented coefficient matrix file. 1. t script to solve linear set of equations 3. i requires augmented coefficient matrix file header 8. get augmented coefficient decompose rhs 1 to coefficient matrix Amat, and right hand side disp natrix file name fname input ('Augmented coefficient 10 load (fname) Nrow Ncol) size (fname) Amat augmat 1 Nrow) 13 rhs augmat Ncol) 16 solve system soln Amat/rhs. 18 19. display results disp disp (The solution vector is) disp (soln) However, the following messages appeared when the student attempted to run the script using a properly configured augmented coefficient matrix .called test.dat, as a test case. Your job is to find the offending line of code and (2) show a fix to the error in the spaces provided below the message (a) Error: File C: eqnsolver Line 5 Column 13 Expected a variable, function or constant, found
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
