Simple MATLAB project.

Please have done by Friday 1pm EST


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)


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


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


% 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


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

Taidot: Algoritmi, FPGA, LabVIEW, Matlab ja Mathematica, Verilog / VHDL

Näytä lisää: monte carlo simulation free matlab, montecarlo matlab, monte carlo matlab, matlab, monte carlo method matlab, matlab gray, plot graphs using matlab, plot paper matlab, matlab simulink creating stand alone code, convert matlab, fortran matlab conversion, fortran matlab, matlab coding job, matlab 15days free trial, matlab project monte carlo, matlab code hsdpa

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

Projektin tunnus: #12231826

Myönnetty käyttäjälle:


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)

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


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)

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

$50 USD 2 päivässä
(134 arvostelua)
$155 USD 3 päivässä
(111 arvostelua)


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

A proposal has not yet been provided

$88 USD 1 päivässä
(102 arvostelua)

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)

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)
$88 USD 2 päivässä
(9 arvostelua)
$30 USD 3 päivässä
(17 arvostelua)
$35 USD 2 päivässä
(3 arvostelua)
$155 USD 3 päivässä
(1 arvostelu)

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)
$23 USD 6 päivässä
(1 arvostelu)

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)

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)