
Douglas B. answered 06/05/20
Linear algebra tutor with masters degree in applied math
For solving linear systems in Matlab:
To solve Ax = b:
>>x = A\b
Never do this:
>>x = inv(A)*b.
Fatima A.
asked 06/05/20Write a MATLAB function to solve the system of linear equations given below using matrix division. Make r an input to the function and x will be the output.
⌈ 5 2r r ⌉ { x1 } { 2}
| 3 6 2r -1 | { x2 } = {3}
⌊ 2 r -1 3r ⌋ { x3 } {5}
Please notice that the parentheses for x1, x2, x3 are only one pair of parantheses and in the same order x1 on the top, x2 in the middle and x3 in the bottom. But as I mentioned they're in one parentheses but I couldn't write
This is the same for the values preceding the Xes and the values after (=) sign
Thank you in advance.
Douglas B. answered 06/05/20
Linear algebra tutor with masters degree in applied math
For solving linear systems in Matlab:
To solve Ax = b:
>>x = A\b
Never do this:
>>x = inv(A)*b.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.