Matlab problem Below is lutx. Just copy and paste to your MATLAB 2.19. For n = 1
ID: 3872250 • Letter: M
Question
Matlab problem
Below is lutx. Just copy and paste to your MATLAB
2.19. For n = 100, solve this tridiagonal system of equations three different ways: 2x1-x2 = 1, (a) Use diag three times to form the coefficient matrix and then use lutx and bslashtx to solve the system. (b) Use spdiags once to form a sparse representation of the coefficient matrix and then use the backslash operator to solve the system. (c) Use tridisolveto solve the system. (d) Use condest to estimate the condition of the coefficient matrix. DagaRanke for some subset of the WebExplanation / Answer
ANSWER::
S = solve(eqn,var)
S = solve(eqn,var,Name,Value)
Y = solve(eqns,vars)
Y = solve(eqns,vars,Name,Value)
[y1,...,yN] = solve(eqns,vars)
[y1,...,yN] = solve(eqns,vars,Name,Value)
[y1,...,yN,parameters,conditions] = solve(eqns,vars,'ReturnConditions',true)