Question: Need help fixing matlab code they should output same number but it doesnt % % # 1 Solving Ax = b % There are several
Need help fixing matlab code they should output same number but it doesnt
# Solving Ax b
There are several way to solve Ax b in Matlab. Consider the following:
A ;;;
b ;;;
x Ab; This is matlab's default solver for Ax b It's a pretty good.
The maximum difference between Ax and b is: numstrmaxabsAxb
Ainverse A; Another way to solve Ax b is to find the inverse of A
CODE HERE: use Ainverse to find the x that solves Ax b
xinverse Ainverse b;
The maximum difference using the inverse is: numstrmaxabsAxinverseb
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
