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
Creating cell arrays, Creating Cell arrays: There are many ways to cre...
Creating Cell arrays: There are many ways to create cell arrays. For illustration, we will create a cell array in which one element will store an integer, one element store ch
Illustration of finding a sting, Illustration of finding a sting: Le...
Illustration of finding a sting: Let's enlarge this, and write a script which creates a vector of strings which are phrases. The outcome is not suppressed so that the string
Finding sums by for loop, Finding sums and products: A very general ap...
Finding sums and products: A very general application of a for loop is to compute sums and products. For illustration, rather than of just printing the integers 1 through 5, w
Basic mathematical operations, Basic mathematical operations: All the ...
Basic mathematical operations: All the basic mathematical operations can be executed on symbolic expressions and variables (example, add, raise to a power, multiply, subtract,
Evaluating a string, Evaluating a string: The function eval is used to...
Evaluating a string: The function eval is used to compute a string as a function. For illustration, below is the string 'plot(x)'is interpreted to be a call to plot the functi
Is functions in matlab, IS Functions in Matlab: There are many functio...
IS Functions in Matlab: There are many functions which are built into MATLAB which test whether or not something is true; these function names start with the word is. As these
Individual structure variable, Individual structure variable: The indi...
Individual structure variable: The individual structure variable for one software package may look like this: The name of the structure variable is a package; it has f
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
Defined a variable in work space, Defined a variable in work space: Th...
Defined a variable in work space: The variables defined in the script will become a part of the workspace: >> clear >> who >> mysummfile 15 >> who
Function used in binary search, Function used in binary search: The fu...
Function used in binary search: The function below implements this binary search algorithm. It receives two arguments: the sorted vector and a key (on the other hand, the func
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