Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database System

Authors: Elmasri Ramez And Navathe Shamkant

7th Edition

978-9332582705

More Books

Students also viewed these Databases questions