Question: Use Matlab and create an m-file Submit your M-file and a diary that shows how you tested the code. Create a function csolve2.m with input
Submit your M-file and a diary that shows how you tested the code. Create a function csolve2.m with input matrix A and a column vector b and no output. the function should display the rank, the pivot and free variables of A, the particular solution to Ax = b. and the special solutions for A. Test it using the system below. A = [1 -8 -7 5 0 0 -3 2 1 -8 -10 7] b = [4 -3 1] Your display should be precisely the following: >> csolve2(A, b) the rank of the coefficient matrix is 2. Pivot variables: 1 3 Free variables: 2 4 the particular solution is: xp = 11.0000 0 1.0000 0 the special solutions are: xs = 8.0000 -0.3333 1.0000 0 0 0.6667 0 1.0000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
