# matlab

Simple MATLAB project.

Please have done by Friday 1pm EST

MATLAB

2 parts

Part 1

1. Write a function, named swap, to swap two rows in a matrix. You will pass the matrix and two row numbers to exchange.

2. Write a function that takes a matrix, a row number and a scalar as arguments (inputs) and multiplies each element of the row of the matrix by the scalar returning (outputs) the updated matrix.

3. Write a function that takes a matrix, two row numbers and a scalar as arguments and returns a matrix with a linear combination of the rows. For example, if the rows passed to the function were i and j and the scalar was alpha, each element of row j would become alpha aik + ajk , where k represents columns 1 through the number of columns in the matrix.

4. Write a function that takes a matrix, a row number and a column number. Compare the entry in the row and column inputted by the user to the other entries below it in the same column. Then, return the row number that contains the largest absolute value in the column. For example, if your matrix is [ 1, 9, 4, 5 ; 11, − 2, 3, 0; 0, − 6, 5, 4; 3, 5, 7, − 3 ] and you pass row 2, column 2, the function should return 3. Row 3 has the largest absolute value in column 2 including and below row 2.

Part 2 (requires things from part 1)

Project

Gaussian Elimination with back substitution is a method used to solve a system of linear equations written inthe form Ax=b

where 'A' is the coefficient matrix and 'b' is the constant matrix.

Create a function that accepts 'A' and 'b' and returns the solution of the system of linear equations using

Gaussian Elimination with Back Substitution. The function has two main parts, using: row operations - to obtain 0 for all the entries below the main diagonal and back substitution - to find the solutions of the systemof linear equations. To perform the row operations in this function, call the functions created in Part 1:

swap (Problem 1), linear combination (Problem 3) and finding the row with largest absolute value in a

column (Problem 4).

Note: The row operation of making the main diagonal entry 1 was omitted.

The only MATLAB function allowed is size.

All other MATLAB functions are NOT ALLOWED.

The colon operator (:) CANNOT be used for indexing. For example, B(:,1) or A(2,:).

MATLAB functions for finding inverse of matrices NOT ALLOWED: inv() and A/B or A\B where A and B are

matrices.

Use one file to create the function. The main (first) function for the file is Gaussian Elimination with BackSubstitution and the functions from Part 1 would be sub-functions or local functions.

Format of the File:

function [outputArguments] = MainFunctionName(inputArguments)

%Comment providing function summary.

% Comments explaining inputs, outputs and detailed behavior if [url removed, login to view] Body

%Statements go here.

The function should assign all outputArguments

end

% Local function definition. You would have THREE local functions.

function [outputArguments] = LocalFunctionName(inputArguments)

%Comment providing function summary.

% Comments explaining inputs, outputs and detailed behavior if [url removed, login to view] Body

%Statements go here. The function should assign all outputArguments

end

Provide detailed comments. Explain the inputs and outputs and outline the different steps in the function.

( 2 reviews ) Tampa, United States

Project ID: #12231826

## Awarded to:

TellezMiotta

Hi! My name is Fernando Téllez. I am a senior year student of electrical engineering at Universidad Simón Bolívar (USB), one of the most prestigious universities in my country (Ranked 34° at the QS University Rankings: More

\$40 USD in 1 day
(39 Reviews)
5.5

## 18 freelancers are bidding on average \$63 for this job

Softeria

I am Electronics Engineers. My Expertise are MATLAB, Simulink, AUTO CAD, Pro E, Verilog, Python, PSSE, PWS, PSS Sincal, ORCAD, Altium(PCB design pursuit) ,MPLAB, Xilinx (VHDL, HDL). PLC, SCADA Systems, Wireshark and pa More

\$100 USD in 3 days
(94 Reviews)
6.5
\$155 USD in 3 days
(91 Reviews)
6.3
VolKa

Hi. I am very good in Matlab and sure can do this. Regards...........................................

\$50 USD in 2 days
(108 Reviews)
6.0
aminariaz

A proposal has not yet been provided

\$88 USD in 1 day
(99 Reviews)
6.0
raulbehl

Hello

\$100 USD in 2 days
(53 Reviews)
5.7
rajeshkumararora

Hello I am Rajesh having PhD from a top university and doing Matlab projects for over 15 years. Basically you want a Matlab code on Gaussian elimination from first principles without using in built Matlab functions. I More

\$50 USD in 1 day
(25 Reviews)
5.0
zain437

Hi I can help you in this project. I have done many projects on Matlab. Thanks for considering my bid.

\$55 USD in 1 day
(15 Reviews)
4.9
\$88 USD in 2 days
(9 Reviews)
4.0
\$30 USD in 3 days
(17 Reviews)
3.9
\$35 USD in 2 days
(3 Reviews)
3.5
aronlebani

I have a Bachelor of Engineering (Honours) (Mechanical) with a Bachelor of Science. I have plenty of Matlab experience obtained through many projects undertaken throughout my degrees. I have taken several courses which More

\$30 USD in 1 day
(3 Reviews)
2.4
\$155 USD in 3 days
(1 Review)
2.2
LucaA1

I have written most of the solution already. I have been talking to another user who posted the exact same project???? Very suspicious. [url removed, login to view]

\$30 USD in 1 day
(2 Reviews)
1.9
pin311

Regards We read all project. We can make simnple Matlab without problem Don't worry, We are a engineer team When do we begin it? your time is short for it. We are available to star on this moment. our p More

\$35 USD in 3 days
(2 Reviews)
1.1
\$23 USD in 6 days
(1 Review)
1.3
alexandrebellaic

Expert in Matlab, project can be completed in a very short-time. Results will be clear, synthetic and flawless.

\$50 USD in 2 days
(0 Reviews)
0.0
vw6464953vw

We are a team of 4 members who expertise in the fields of DSP, image processing, audio processing and mobile communications. Each are well experienced and highly skilled. We are very much confident that we will complet More

\$24 USD in 3 days
(0 Reviews)
0.0