Question: c . Which method is the following matlab code? Write the output of following commands in MATLAB. functionX.m file function x = function x (

c. Which method is the following matlab code? Write the output of following
commands in MATLAB.
functionX.m file
function x= function x(B)
[m,n]=size(B);
for i=1:m
B(i,:)=Bi,:B(i,i);
for j=(i+1):m
B(j,:)=B(j,:)+(-1)**B(j,i)**B(i,:);
end
end
x=[];
x(m)=B(m,n);
for i=(m-1):-1:1
total =0;
for j=(n-1):-1:(i+1)
total = total +B(i,j)**x(j);
end
x(i)=B(i,n)- total;
end
 c. Which method is the following matlab code? Write the output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!