Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can you explain the these functions with detailed commands? B re Breakpoints Run

ID: 3574604 • Letter: C

Question

Can you explain the these functions with detailed commands?
B re Breakpoints Run Run and and Advance Run and v Advance NAVIGATE BREAKPOINTS RUN Editor CluserslphyomyatlDesktoplgaussm gauss m* m x near comb. m Largest. Matrix m x GaussPP m x 16 constant (i) constant (i) Pivot constant (k) returns a constant with a linear comu end 19 A back substitution x (n) constant (n) (0.0001 +Matrix (n, n) function to find non zero pivot for i n-1 -1:1 sum constant (i) 24 for j i+1:n sum sum-Matrix (i, j) x (j); x (i) sum/Matrix (iri) 2e Command Window New to MATLAB? watch this video, see Example or read getting started,

Explanation / Answer

Hint:

Use this algorithm .It may help :

There is an actual MATLAB command for doing back substitution:

function x=backsub(A,y);
% backsub: solves upper triangular system A*x = y using backwards
substitution
% usage: x=backsub(A,y);
%
% arguments:
% A (nxn) - upper triangular matrix
% y (nx1) - vector
%
% x (nx1) - solution to A*x = y

% check to see that A is upper triangular
if any(any(tril(A,-1)))
   error('A must be upper triangular')
end

% check dimensions of A and y
[n,m]=size(A);
if n~=m
   error('A must be square');
end
if any([n 1]~=size(y))
   error('y must be a vector with the same # of rows as A');
end

% perform backwards substitution
x=zeros(n,1);
x(n)=y(n)/A(n,n);
for i=n-1:-1:1
   x(i)=(y(i)-A(i,i+1:n)*x(i+1:n))/A(i,i);
end

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote