Login

Create Account
+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
Tracing of square matrices, Tracing of Square matrices: The trace of a...
Tracing of Square matrices: The trace of a square matrix is the addition of all the elements on the diagonal. For illustration, for the preceding matrix it is 1 + 6 + 11 + 16,
Symbolic variables and expressions, Symbolic Variables and expressions: ...
Symbolic Variables and expressions: The MATLAB has a type known as sym for the symbolic variables and expressions; these work with strings. The illustration, to generate a sym
Use of nested ifelse statements, Use of Nested ifelse statements: By...
Use of Nested ifelse statements: By using the nested ifelse to select from among the three possibilities, not all the conditions should be tested. In this situation, if x is
Data structures, Data structures: The Data structures are variables wh...
Data structures: The Data structures are variables which store more than one value. In order to made sense to store more than one value in a variable, the values must in some
Variable scope, Variable Scope: The scope of any of variable is the wo...
Variable Scope: The scope of any of variable is the workspace in which it is valid. The workspace generated in the Command Window is known as the base workspace. As we know
Smoothing values, How can I use the weighted moving average formula in matl...
How can I use the weighted moving average formula in matlab to smooth a column data of 404 values?
Frd to ss, I have a frequency response data. How do I convert that to state...
I have a frequency response data. How do I convert that to state space? I am given a 6 row and 3 column data (steady state). How do i convert that to state space model?
Example of image processing, Example of image processing: The other il...
Example of image processing: The other illustration generates a 5 × 5 matrix of arbitrary integers in the range from 1 to the number of colors; the resultant image is as shown
Ischar function  string, ischar function: The ischar function return ...
ischar function: The ischar function return the logical true if an array is a character array, or logical false if not. >> vec = 'EK127'; >> ischar(vec) ans =
Logical scalar values  operators, Logical scalar values: The MATLAB a...
Logical scalar values: The MATLAB also has or and and operators which work element wise for the matrices: These operators will compare any of the two vectors or matric
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
IT Courses and Help
ExpertsMind Services
Online Tutoring
Projects Assistance
Exam Preparation
Coursework Help
Programming Courses
Engineering Courses
Why Us ?
~Experienced Tutors
~24x7 hrs Support
~Plagiarism Free
~Quality of Work
~Time on Delivery
~Privacy of Work