Solutions and reference items
EGR 210 tutoring: MW 8-9:30PM Crounse 307
Office hours MWF 9-9:30AM, Tu/Th 10-11:30AM
Simple arrow key 4-dir. move example .m file
Arrow key any angle move example .m file
Any angle snake move example with periodic boundary .m file
Snake move by mouse position example .m file
Lab problems to work on after Matlab Grader
Solutions to exam 2 practice problems that I emailed
Solution to nested for loop worksheet
Solution to while loop worksheet
Solutions to if statement worksheet
Solutions to scatter plot worksheet
Solutions to function plot worksheet
Solutions to exam 1 practice packet. (Note that the problem statement in 2(c) was changed as indicated in class, and 2(k) and (l) were identical by mistake.
Solution to 2D array creation worksheet (9/15)
Solution to 1D array manipulation worksheet (9/12)
Solution to 1D array creation worksheet (9/10)
Instructions for installing MATLAB on your laptop
Course syllabus
Fall term academic calendar
Fall term final exam schedule
Daily action items by date
All reading assignments are due on the date they are assigned, in preparation for the following day's class.
——- Week 13 items below (11/30 -- 12/5) ——-
• Work on final projects this week.
12/5 (Friday) :
• Project submissions and presentations today in class
——- Week 12 items below (11/16 -- 11/21) ——-
• Work on final projects this week.
11/17 (Monday) :
• Choose a project and describe it to me by today.
——- Week 11 items below (11/9 -- 11/14) ——-
11/12 (Wed) :
• Exam 3: Writing scripts that incorporate for/while loops, if statements, motion through time, and graphic elements, much like what we have been doing with the bouncing balls and circles in 2D. You should have problems 1-7 on the "Lab problems" worksheet ((through a gambler rolls the dice) finished before the exam. Being comfortable with drawing and positioning and moving shapes (circles and squares and such) and stepping through time is the good preparation. The Grader problems in chapter 17a/b are also good practice at using loops to repeat a process, place numbers in an array, and stop when a condition is met. This exam will be all script/function writing.
1/14 (Fri) :
• Complete "Lab problems to work on after Matlab Grader" problems by today.
——- Week 10 items below (11/2 -- 11/7) ——-
• Working on "Lab problems to work on after Matlab Grader".
——- Week 9 items below (10/26 -- 10/31) ——-
10/27 (Mon) :
• Quiz on for loops, including nested. One question of the type "What is in the array A after I run the script?", one of the variety "what does the script print out?", and one script to write to accomplish a task that is described.
——- Week 8 items below (10/19 -- 10/24) ——-
10/24 (Fri) :
• No quiz today
——- Week 7 items below (10/12 -- 10/17) ——-
10/12 (Sun) :
• Read 18.1-18.7
10/15 (Wed) :
• Exam #2 in class today. Coverage is through while loops, but not including for loops. I recommend completing the zybook items concerning while loops in chapter 17 soon, even though the assignments are not due until after the exam. You should expect similar type of questions: create a script or function that does what is described; what does the script give as output if the code given is executed?; display the contents of array A after the given code is executed.
——- Week 6 items below (10/5 -- 10/8) ——-
10/6 (Mon) :
• Continuing Ch 17 discussion today.
10/8 (Wed) :
• Continuing Ch 17 discussion today.
——- Week 5 items below (9/28 -- 10/3) ——-
9/28 (Sun) :
• Read Ch 15.
9/30 (Tues) :
• Read Ch 16.
10/2 (Thurs) :
• Read Ch 17.
10/3 (Fri) :
• Quiz covering basic plotting/images of functions:
2D line plots of functions with given formulae, including multiple curves on the same axes, for a given x-axis range, using xlabel, ylabel, title, and choosing line color using 'r', 'b', etc. You don't need to worry about line types (dashed, etc.) or displaying and adjusting the data markers. Adjusting the range of the horiztal and vertical axes using axis([xmin, xmax, ymin, ymax]) .
Displaying a function of two variables like sin(xy) for a given range of x and y, using meshgrid and imagesc. Selecting the MATLAB-native colormap if I give you the name (such as "jet" or "turbo"), and displaying a colorbar. Using xlabel, ylabel, and title here, too.
——- Week 4 items below (9/21 -- 9/26) ——-
9/22 (Mon) :
• Exam #1
9/23 (Tues) :
• Read Ch 13.
9/25 (Thurs) :
• Read Ch 14.
——- Week 3 items below (9/14 -- 9/19) ——-
9/14 (Sun) :
• Read Ch 11.
9/16 (Tues) :
• Read Ch 12.
——- Week 2 items below (9/7 -- 9/12) ——-
9/7 (Sun) :
• Read Ch 6 and 7.
9/9 (Tues) :
• Read Ch 8 and 9.
9/11 (Thurs) :
• Read Ch 10.
9/12 (Fri) :
• Quiz (Covering row and column vector creation, editing, and manipulation, similar to the problems on Wednesday's worksheet.)
——- Week 0-1 items below (8/29 -- 9/7) ——-
8/29 (Fri):
• First class meeting.
• Install MATLAB on your laptop. Discussion of Ch 1&2.
8/31 (Sun) :
• Read sections in chapters 1&2 (that are not marked as optional) and attempt to complete activities in the text. These assignments are listed in the text under "Assignments," along with their final due dates.
9/2 (Tues):
• Read Ch 3 (and attempt to complete reading activities, which goes without saying in the future).
9/4 (Thurs):
• Read Ch 4 and 5.
9/5 (Fri) :
• Quiz (Covering variable assignments, arithmetic operations and numeric expressions. Effect of a semicolon on command output. Defining a variable to be type double, or a string, or as a logical type containing false or true. Logic and relation operators, and creating more complicated logical expressions combining relations and logical operators. Clearing the entire workspace. Saving and loading particular variables from and into the workspace using a given filename. You might be given a statement and asked for any output when entered at the command line, or you might be asked for the command that will accomplish something described.)