

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Philosophical Notes:
Show of hands by major Show of hands by class year Introduce yourself
Slide presentation Open class Web site Point them to Syllabus page
Difference between algebraic = and assignment. Encourage useful variable names
Discuss Space Ship One (or some other problem type) – o (^) X prize o (^) Carried to 50,000 ft on mother ship o (^) Rocket motor gives vertical velocity V o (^) Outer space defined as above 100 km altitude o (^) How would you calculate the required velocity? (v (^2) = u (^2) + 2 a s) o (^) $15,000 for ride into outer space o (^) If you had some velocity V 1 (> V), how long would you get in outer space for your money? (s = u t + ½ a t (^2) ) -> quadratic equation
Enter some stuff into the Matlab Command Window. Show the variables appearing in the Workspace. Do the velocity problem o (^) 1 km = 3281 ft o (^) g = -9.81 m/sec^2
Talk about the Current Directory (I usually work from my Acme account) Open the empty script provided in the Matlab editor Demonstrate do-a-bit / test-a-bit strategy using the Debug/Save and Run menu item (F5) with the velocity and time above 100 km problems Solve the quadratic equation in the script explicitly as shown in the finished solution
Show the links on the class Web site to WebCT Vista Have a student volunteer: o (^) go through the registration process o (^) submit your script as his/her HW o (^) retrieve and verify the HW
Walk through the following steps for doing Homework 1. Discuss file storage and a working directory: o (^) On your own computer, store files in the default Matlab working directory Matlabr7/work. o (^) On a campus computer, either use the Y drive that should be mapped to your gt account, or a floppy disk, or a memory stick. Retrieving the homework file: o (^) Open the class web site o (^) Scroll down to Homework 1 o (^) Right click on Homework 1 o (^) Choose Save target As … o (^) Navigate to your working directory (see above) o (^) Make sure the file has the name hw1.m o (^) Accept that location and let the system download the file o (^) Decline the offer to open the file Doing the homework o (^) Start Matlab o (^) Point the current directory to your working directory o (^) Double click the file – this should open the matlab editor o (^) Build and test solutions incrementally o (^) [since a student will submit this file, where the gt number is required, put a comment in caps like :THIS FILE ACTUALLY DONE BY PROF BOBICK]
Create vectors with […], linspace(…), zeros(…), ones(…), rand(…). Access the data by indexing – out of bounds below, above the size Shorten vectors with [] Write a script to plot sqrt(sin(x)) or something. You assume that functions can accept a vector and produce a vector.