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
Program to examine exponential function, Write a program to examine exponen...
Write a program to examine exponential function: We will write a program to examine the value of e and the exponential function. It will be a menudriven. The menu options wil
Text graphic function  graphics objects, Text graphic function  Graphics ...
Text graphic function  Graphics objects: The text graphic function permits text to be printed in a Figure Window, involving special characters which are printed by using \spe
Execute a exponential function program, Execute a exponential function prog...
Execute a exponential function program: Running the script will take up the menu as shown in the figure: Then, what happens will totally depend on which button(s) the
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
Reading from a file in a while loop, Reading from a File in a While Loop: ...
Reading from a File in a While Loop: Though in most languages the combination of a loop and an if statement would be essential to determine whether or not the elements in a ve
Illustration of gaussjordan, Illustration of gaussjordan: Here's an ...
Illustration of gaussjordan: Here's an illustration of performing such substitutions by using MATLAB >> a = [1 3 0; 2 1 3; 4 2 3] a = 1 3 0 2 1 3 4 2
Str2num function  string, str2num function  String: The function str2...
str2num function  String: The function str2num does the opposite; it takes the string in which a number is stored and converts it to the type double: >> num = str2num('123.
Interchange rows  gaussjordan elimination, Interchange rows : for illust...
Interchange rows : for illustration interchanging rows ri and rj is written as
Illustration of image processing, Illustration of Image processing: Th...
Illustration of Image processing: This displays that there are 64 rows, or in another word, 64 colors, in this specific colormap. It also displays that the first five colors a
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
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