Unformatted text preview:

MATH2071: LAB #1(a): PreliminariesIntroduction Exercise 1Grading Exercise 2Starting up Matlab Exercise 3Using a browser to download files Exercise 4Getting help Exercise 5Quitting Exercise 6Lab summaries Exercise 7More on Matlab Exercise 8Variables and values Exercise 9Vectors and matrices Exercise 10Vector and matrix operations Exercise 11Flow controlM-filesOrdinary differential equations and graphicsExtra credit (8 points) Extra CreditSending me your files1 IntroductionYou will find instructions for each lab, including this one, on the web, starting from my home page:http://www.math.pitt.edu/∼sussmanm . I do not supply copies on paper. Many students find it helpfulto print out copies of the lab instructions before the lab session, although it is not necessary. During the labsession, it is convenient to use the online version because you can “copy-and-paste” instructions from theweb page directly into Matlab. If you prefer, you will find a version of this lab in Adobe pdf format here.This version of the first lab is intended only for students who didnot take Math 2070.There are two versions of the first lab. This version introduces the Matlab environment and programminglanguage, and presents the general format of the work you need to hand in. If you have already taken Math2070, this material would be a repetition, so you should take the alternative version of Lab 1(b). Studentswho complete Lab 1(a) do not have to complete Lab 1(b).This lab will occupy three lab sessions. The first session will introduce the mechanics of using Matlabon the Linux computers here in the lab. There is some reading to be completed before the second sessionand you can do that here in the lab or at any other computer with web access. The subsequent two sessionswill present exercises in Matlab use.The discussion that follows assumes that you are basically familiar with browsing the Web. The nextfew sections will give a brief introduction to Matlab and explain how to use it and those aspects of theenvironment that will be important to doing the labs.2 GradingThe labs roughly follow the material presented in lecture, but are independent of the homework and otherexercises presented in lecture. Lab grades count as 30% of your course grade.Attendance is not required, but help is most readily available during the lab sessions.1You are encouraged to work together with other students, but you must provide your own diary andsummary files (explained further below).Each lab will be given a grade of A+, A, B, C, D or 0. These grades correspond with percentage gradesof 100, 95, 85, 75, 65 and 0. At the end of the semester, your grades will be averaged and then integratedwith your grade in lecture. The grading criterion is:Grade Value descriptionA+ 100 All exercises were completed correctly.A 95 All exercises were attempted and are substantially correct.B 85 All exercises were attempted but there are some serious errors.C 75 Substantial portions of some exercises were omitted.D 65 Little or nothing correct in the submission.Zero 0 Lab was not submitted.Some of the labs include extra credit exercises. The percentage values of these extra credit exercises arestated with the exercises themselves. At the end of the semester, the extra credit percentages will be addedto the grade percentages and the average computed from the sum, except that averages will not exceed 100.Half of the unused extra credit on one lab will be applied toward later labs. Unsubmitted labs will not beeligible for extra credit.Each lab is due before 11:59 PM the day the subsequent lab begins. Labs submitted after the day thesubsequent lab begins will have 1% deducted from the percentage grade for that lab. An additional percentwill be deducted for each further week they are late. The final due date for labs 1 through 8 is the last dayof classes for the semester, and the final due date for labs 9 and 10 will be announced near the end of thesemester. Labs that are not submitted before their final due date will be given a grade of zero, except underspecial circumstances.3 Starting Up MatlabMatlab is available on the computers in Posvar 1201, in other computer labs on campus as well as on theLinux computers in the labs in Thackeray hall, such as the seventh floor computer lab opposite the lounge.You can download it for your personal computer from the university software center, and I recommend youdo so.In this section you will see how to start up of Matlab using the Java windowing interface. Theseinstructions are the same for Unix, Mac and MS-Windows versions of Matlab. I will also give the command-line equivalents of many of the commands. These command-line equivalents are valid for all versions ofMatlab as well as for the Matlab clone named Octave. Generally speaking, anything you can do using amenu can also be done with command-line equivalents. You would use the command-line equivalents whenwriting scripts and the menus when working interactively.1. To start up Matlab on the computers in Posvar 1201, go to the start menu, type matlab in the searchbox and then click on it. A “splash” screen will open and then close by itself, followed by the Matlabdesktop window. This window will look something like the following:2The Matlab desktop contains menus for many activities along the top, but we will be using very fewof these options. Below the menus is a line containing “Forward”, “Back”, “Up to parent folder”, and“Open folder” icons, plus a line describing the location of the current folder.By default, the region below the location of the current folder contains several windowpanes. The paneon the left lists files in the current directory and the contents of one of those files. The pane on theright is divided into a “Workspace” pane containing a list of all variables currently known to Matlaband a “Command History” pane containing copies of your recent commands. The center windowpaneis the “Command” windowpane and you will be typing Matlab commands in it. On the left side ofthis command windowpane there will be a prompt of the form >>. Your typed commands go next tothis prompt.2. When working on the computers in Posvar 1201, I strongly suggest you use a USB drive (“Thumbdrive”, “Jump drive”, “Flash drive”, “Memory stick”) that you carry with you. Plug it into one ofthe computer’s USB ports. You can use local storage, but it will be wiped out as soon as you log out,so you need to remember to copy


View Full Document

Pitt MATH 2071 - Preliminaries

Download Preliminaries
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Preliminaries and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Preliminaries 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?