# 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 [login to view URL] 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 [login to view URL] 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.

Tietoa työnantajasta:
( 2 arvostelua ) Tampa, United States

Projektin tunnus: #12231826

## Myönnetty käyttäjälle:

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: Lisää

\$40 USD 1 päivässä
(42 Arvostelua)
5.6

## 16 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

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 Lisää

\$100 USD 3 päivässä
(122 arvostelua)
6.8
VolKa

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

\$50 USD 2 päivässä
(134 arvostelua)
6.2
\$155 USD 3 päivässä
(111 arvostelua)
6.4
raulbehl

Hello

\$100 USD 2 päivässä
(60 arvostelua)
5.8
aminariaz

A proposal has not yet been provided

\$88 USD 1 päivässä
(102 arvostelua)
6.1
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 Lisää

\$50 USD 1 päivässä
(39 arvostelua)
5.5
zain437

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

\$55 USD 1 päivässä
(15 arvostelua)
4.9
\$88 USD 2 päivässä
(9 arvostelua)
4.0
\$30 USD 3 päivässä
(17 arvostelua)
3.9
\$35 USD 2 päivässä
(3 arvostelua)
3.5
\$155 USD 3 päivässä
(1 arvostelu)
2.2
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 Lisää

\$35 USD 3 päivässä
(2 arvostelua)
1.1
\$23 USD 6 päivässä
(1 arvostelu)
1.3
alexandrebellaic

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

\$50 USD 2 päivässä
(0 arvostelua)
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 Lisää

\$24 USD 3 päivässä
(0 arvostelua)
0.0