Customer Service Chat
Get quote & make Payment
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 built-in 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
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..
Initializing the data structure - function, Initializing the data structure...
Initializing the data structure - Function: Function is shown as: >> printcylvols(cyls) Cylinder x has a volume of 169.6 Cylinder a has a volume of 100.5
Illustration of anonymous functions, Illustration of anonymous functions: ...
Illustration of anonymous functions: Dissimilar functions stored in the M-files, when no argument is passed to an anonymous function, the parentheses should still be in the fu
Passing structures to functions, Passing Structures to Functions: The ...
Passing Structures to Functions: The whole structure can be passed to a function, or separate fields can be passed. For illustration, here are the two distinct versions of a f
Algorithm for the function e, Algorithm for the function e: The algori...
Algorithm for the function e: The algorithm for the function eoption is as shown: Use the menu function to show the 4 choices. Error-check (an error would take place
Illustration of matrix solutions, Illustration of Matrix solutions: Fo...
Illustration of Matrix solutions: For illustration, consider the three equations below with 3unknowns x 1 ,x 2 , and x 3 : We can write this in the form Ax = b here A
Gauss elimination, Gauss Elimination: The Gauss elimination technique ...
Gauss Elimination: The Gauss elimination technique consists of: Generating the augmented matrix [A b] Applying EROs to augmented matrix to obtain an upper trian
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,
Executing a program - modular program, Executing a program: Running th...
Executing a program: Running the program would be completed by typing the name of the script; this would call the other functions: >> calcandprintarea Whenever prompt
Illustration of graphics properties, Illustration of Graphics properties: ...
Illustration of Graphics properties: A particular property can also be exhibited, for illustration, to view the line width: >> get(hl,'LineWidth') ans =
Appending variables to the mat-file, Appending variables to the Mat-File: ...
Appending variables to the Mat-File: Appending to the file adds to what has been saved in a file, and is accomplished by using the -append option. For illustration, supposing
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
Why Us ?
~24x7 hrs Support
~Quality of Work
~Time on Delivery
~Privacy of Work
Human Resource Management
Literature Review Writing Help
Follow Us |
T & C
Copyright by ExpertsMind IT Educational Pvt. Ltd.