Login

Create Account
Customer Service Chat
+14156709189
info@expertsmind.com
Submit Homework/Assignment
Get quote & make Payment
Get Solution
Matlab assignment, MATLAB in Engineering
1. Write a MATLAB function (upperTriangle) using the functions you previously created to convert a matrix to upper triangular form. Start with row 1, column1. Find the row that has the largest absolute value in the current column (you have a function that will do that). If the row is not your working row, swap rows (you have a function that will do that). Calculate a factor that you can use to form a linear combination with your working row to zero the value in the column below your working row. Use that factor and the linear combination of rows to zero the first column below your working row (you have a function that will do that). Continue down that column until you reach the last row. All the values in your working column below your working row should be zero. Move to the next diagonal position (down 1 row over 1 column) and repeat the process. Continue the process moving down the diagonal until you reach the last row. You matrix should be in upper triangular form.
Your function should be written to handle matrices of any size. Test your function with matrices of different sizes for which you know the solution to ensure that your function works correctly.
Use variable names that relate to their function and include comments that explain your program logic.
Do not use any builtin MATLAB functions except size(), input(), and zeros().
2. Modify the function in problem 1 (call the new function determ) to calculate the determinant of a square matrix. Recall that the determinant of an upper triangular matrix is the product of the diagonal elements. However, when creating an upper triangular matrix, each time a row is swapped, the determinant changes sign.
Posted Date: 11/23/2012 5:46:08 PM  Location : United States
Ask an Expert
Related Discussions:
Matlab assignment, Assignment Help, Ask Question on Matlab assignment, Get Answer, Expert's Help, Matlab assignment Discussions
Write discussion on Matlab assignment
Your posts are moderated
Write your message here..
Related Questions
Illustration of initializing the data structure, Illustration of initializi...
Illustration of initializing the data structure: illustration of initializing the data structure by preallocating is here as shown: >> cyls(3) = struct('code', 'c', 'dimen
Illustration of preallocating a vector, Illustration of Preallocating a Vec...
Illustration of Preallocating a Vector: Illustration of calling the function: >> myveccumsum([5 9 4]) ans = 5 14 18 At the first time in the loop, outvec wil
Indexing into vectors of structures, Indexing into Vectors of structures: ...
Indexing into Vectors of structures: Frequently, when the data structure is a vector of structures, it is essential to iterate through the vector in order by various fields. F
Function call  modular program, Function call: In the function call, ...
Function call: In the function call, not any arguments are passed so there are no input arguments in the function header. The function returns an output argument, therefore th
Filter, A matlab function to calculate filter order
A matlab function to calculate filter order
Intersect function and setdiff function, Intersect function and setdiff fun...
Intersect function and setdiff function: The intersect function rather than returns all the values which can be found in both of the input argument vectors. >> intersect(v
Illustration of set operations, Illustration of Set operations: For il...
Illustration of Set operations: For illustration, given the vectors as shown below: >> v1 = 2:6 v1 = 2 3 4 5 6 >> v2 = 1:2:7 v2 = 1 3 5 7
Matlab assignment, 1. Write a MATLAB function (upperTriangle) using the fun...
1. Write a MATLAB function (upperTriangle) using the functions you previously created to convert a matrix to upper triangular form. Start with row 1, column1. Find the row that has
Matrix operations, Matrix operations: There are some common operations...
Matrix operations: There are some common operations on matrices. The operators which are applied term by term, implying that the matrices should be of similar size, sometimes
Illustration of passing arguments to functions, Illustration of Passing arg...
Illustration of Passing arguments to functions: Here is an illustration of calling this function: >> printrand() The random # is 0.94 As nothing is passed to
Assignment Help
Accounting Assignment Help
Economics Assignment Help
Finance Assignment Help
Statistics Assignment Help
Physics Assignment Help
Chemistry Assignment Help
Math Assignment Help
Biology Assignment Help
English Assignment Help
Management Assignment Help
Engineering Assignment Help
Programming Assignment Help
Computer Science Assignment Help
ExpertsMind Services
Online Tutoring
Projects Assistance
Exam Preparation
Coursework Help
Programming Help
IT Services
Why Us ?
~Experienced Tutors
~24x7 hrs Support
~Plagiarism Free
~Quality of Work
~Time on Delivery
~Privacy of Work