Gaussian elimination, MATLAB Programming

Diary Files: Before doing this assignment, please read the document Notes on Matlab Assignments (available from the course web page). It describes how to record the results of your Matlab session in a diary le, and then how to edit this le to create your Lab report.

IMPORTANT: The printed report that you hand in for grading must include both the Matlab commands that you typed at the prompt, and the output calculated by the Matlab program. This assignment is for a mathematics course, not a computer science course; the point of many of the calculations is to illustrate the mathematical concepts involved in linear algebra. In general, you should type the answers to the questions in your diary le at the time the computation related to each question is made. Do not wait until you have completed all the calculations.

Before beginning work on the Lab questions you should copy these codes to your workspace. Script Files: When you need to write a script le for this lab and subsequent labs, use the following procedure: Start Matlab and click on File, then New. Move the pointer to the right and click on m-Files. This will open the Matlab Editor/Debugger Window. Type the script commands in this window, then click on File in the Editor/Debugger toolbar and save your script on in your directory. After you have created and saved an m- le, you must set the Path so that Matlab can nd this le. Click on File and then Set Path and follow the directions to add your directory to the list of path names.

Script Files for this Lab: Use the text editor inMatlab to create the followingMatlab function m- les:

(a) Create a function m- file with the commands

function v = rvect(m)

v = fix(10*rand(m,1));

Posted Date: 3/19/2013 5:30:51 AM | Location : United States







Related Discussions:- Gaussian elimination, Assignment Help, Ask Question on Gaussian elimination, Get Answer, Expert's Help, Gaussian elimination Discussions

Write discussion on Gaussian elimination
Your posts are moderated
Related Questions
Example: Load from File and Plot Data: As illustration, a file known as timetemp.dat stores two lines of data. The first line is the time of the day, and the next line is the


Relational Expressions: The Conditions in if statements use expressions which are theoretically, or logically, either true or false. These expressions are termed as relational

Write a function called threshold2 (in a file called 'threshold2.m'). The function takes an arbitrary number of input variables. The first input variable, t, is required and is the

The secant method is an iterative root nding method that is super-linear. The method has the advantage that it is faster than linear methods and does not require knowledge of the

There are many approaches to numerically estimating the derivative of the function.  The relationship:   is called a forward difference, since the estimate of the derivativ

Goal: Learn how to do statistics, sorting and curve fitting in Matlab. Put all of those ".m" files in a folder called yourname_lab7, and zip the folder and submit it on the class w

Define a function: The radius of a circle is passed to the function to input argument  rad; the function computes the area of this circle and stores it in the output argument

As shown in Figure 1, Ecosystem carbon (C) cycles in a tropical forest can be modeled using three "compartments":  aboveground (AG), belowground (BG), and soil organic matters (SOM