Course:  Introduction to Computing Using MATLAB (4 credits) 
Instructor:  K.Y. Daisy Fan 
Website:  http://www.cs.cornell.edu/courses/cs1112/2010fa 
Note:  Take either CS1112 or CS1110, not both. CS1112 is not to be taken with CS2110 concurrently or after CS2110. 

1  
2 
Instructor  
201  T  12:20PM  1:10PM  UP B7 & HLS 306  Shin 
202  T  1:25PM  2:15PM  UP B7 & BRD 140  Shin 
203  T  2:30PM  3:20PM  UP B7 & UPS 215  Teose 
204  T  3:35PM  4:25PM  UP B7 & BRD 140  Teose 
205  W  10:10AM  11:00PM  UP B7 & THR 203  Teose 
206  W  11:15AM  12:05PM  UP B7 & THR 205  Ho 
207  W  12:20PM  1:10PM  UP B7 & HLS 306  Shin 
208  W  1:25PM  2:15PM  UP B7 & OLH 245  Zhao 
209  W  2:30PM  3:20PM  UP B7 & UPS 215  Spielberg 
210  W  3:35PM  4:25PM  UP B7 & THR 205  Bernstein 
Upson B7 is a computer lab. (UP B7 is split in half; we will use the right half.) The first two weeks and then every other week, discussion will take place in the lab instead of the regular classrooms. A reminder of the section location will be posted every Monday.
Instructor:  K.Y. Daisy Fan  dfan at cs.cornell.edu 
Teaching Assistants:  Garrett Bernstein  gsb29 at cornell.edu 
Karen Ho  ksh33 at cornell.edu  
JiYong Shin  jyshin at cs.cornell.edu  
Andrew Spielberg  aes89 at cornell.edu  
Maarika Teose  mt524 at cornell.edu  
Jijie Zhao  zhao at cs.cornell.edu 
See CS1112 > Staff for other course staff and office hours.
Optional software: MATLAB Student Version (2008 or later)
Items that count towards your course grade include homework (programming projects), section/lab exercises, quizzes, and exams (prelims and final).
Exercises (E)  =  4% (discussion exercises) 
Quizzes (Q)  =  1% (in lecture) 
Projects (P)  =  25% 
Prelim 1 (T1)  =  10% 
Prelim 2 (T2)  =  15% 
Prelim 3 (T3)  =  15% 
Final (F)  =  30% 
Exercises (E)  =  9% (discussion exercises) 
Quizzes (Q)  =  1% (in lecture) 
Projects 13 (P)  =  30% 
Prelim 1 (T1)  =  20% 
Prelim 2 (T2)  =  40% 
Your course grade will follow the "cutoff" structure given below. You need an overall score higher than 55 (out of 100) to get a "D" ("marginal pass"). Note that your College (or Major) may require a "C" to be a passing grade. We reserve the right to make adjustments both up and down based on our knowledge of each student.
Overall score Letter 93100 A,A,A+ 8089 B,B,B+ 6576 C,C,C+
Topics and the course schedule are given below. Selected lecture slides and example code will be posted after each lecture. These posted files are not complete transcripts of the lectures. You are expected to attend lecture and to take notes for yourself. Topics and dates are subject to change.
No.  Date  Topics  Lecture Slides  Program Examples  Reading (Insight) 
1  8/26 R  Introduction  Selected slides    Preface & Software sections, Syllabus 
2  8/31 T  Programming basics  Preview
Selected slides 
sphereArea.m, diffArea.m  1.1 
3  9/2 R  Conditionals  Preview
Selected slides 
  1.2 
4  9/7 T  Nested conditionals; logical operators  Preview
Selected slides 
quadMin.m, quadMinGraph.m  1.2 
5  9/9 R  Iteration: for  Preview
Selected slides 
stickExp.m, showForLoop.m, ave10.m, mcPi.m  2.1 
9/9 R  Programming Project 1 due  
6  9/14 T  Iteration: while  Preview
Selected slides 
areaCircle.m, areaIndef.m  2.2, 3.2 
7  9/16 R  Developing algorithms; nested loops  Preview
Selected slides 
DrawRect, DrawStar from Insight. DrawDisk.m, drawDemo.m, nestedStars.m, moreNestedStars.m, isItPrime.m, areTheyPrime.m, table.m  3.1 
9/20 M  Programming Project 2 due  
8  9/21 T  Discrete vs. continuous  Preview
Selected slides 
biggestRectangle.m, xenoDisks.m, threeFadingDisks.m, fadingXenoDisks.m  4.14.3 
9  9/23 R  Userdefined functions  Preview
Selected slides 
plotComparison.m, polar2xy.m,  5.1, 5.2 
9/23 R  Prelim 1  
10  9/28 T  Executing a userdefined function  Preview
Selected slides 
dotsInRings.m, randDouble.m, polar2xy.m  5.3 
11  9/30 R  Probabilities and Averages; vectors; plots  Preview
Selected slides 
RandomWalk2D.m, ShowRW.m, rollDie.m, rollDieV1.m  6.1, 4.2 
12  10/5 T  Simulation; vectors  Preview
Selected slides 
Twinkle.m, RandomWalk2D_v2.m, ShowRW2.m, Centralize.m, Normalize.m, Smooth.m, ShowSmooth.m  6.2, 6.3 
13  10/7 R  2d Arraysmatrix  Preview
Selected slides 
minInMatrix.m, RandomLinks.m, ShowRandomLinks.m, CirclePoints.m  7.1 
Programming Project 3 deadline extended to Oct 14  
10/1112  Fall Break  
14  10/14 R  Matrix examples, contour plotting  Preview
Selected slides 
Cheapest.m, ShowCheapest.m  7.2, 7.3 
10/14 R  Programming Project 3 due (extended deadline)  
15  10/19 T  Working with Images  Preview
Selected slides 
pictureFrame.m, pictureFrame2.m, pictureFrameV.m, showMirror.m, LawSchool.jpg, bwduck.jpg  12.1, 12.2 
16  10/21 R  Working with Images  Preview
Selected slides 
showToGrayscale.m, medVal.m, MedianFilter.m, showFilter.m, Edges.m, LawSchoolNoise.jpg  12.4 
10/21 R  Prelim 2  
17  10/26 T  Characters and strings  Preview
Selected slides 
caps.m, toUpper.m,  9.1 
18  10/28 R  Cell arrays  Selected slides  CardDeck.m, Shuffle.m, RomanNum.m, RN2Int.m  9.2, 8.1 
10/28 R  Programming Project 4 deadline extended to Nov 1  
11/1 M  Programming Project 4 due (extended deadline)  
19  11/2 T  Structures and structure arrays  Preview
Selected slides 
MakePoint.m, DrawLine.m, PickUpStix.m CirclePoints.m,  10.110.3 
20  11/4 R  Working with numeric/text data (file I/O)  Preview
Selected slides Reading from a file 
DrawPoints.m, DrawTriangle.m, LotsaTriangles.m, ShowIndices.m, file2cellArray.m, cellArray2file.m  11.1, 11.2 
21  11/9 T  Computing on a grid (matrix & cell arrays)  Preview
Selected slides 
population.m, statePop.txt, TheDigits.m, showDigits.m, drawDigit.m, showNumber.m  12.3 
22  11/11 R  Working with Acoustic Data  Preview
Selected slides 
showAustin.m, movies.m, wavSegments.m, playSegments.m, myPlayList.m, austin.wav, sp_truth.wav, sp_beam.wav, sp_oz6.wav  13.1 
11/11 R  Programming Project 5 deadline extended to Nov 12  
11/12 F  Programming Project 5 due (extended deadline)  
23  11/16 T  Working with Acoustic Data  Preview
Selected slides 
playTwoNotes.m, playAllButtons.m, see mfiles in 13.2  13.2 
11/16 T  Prelim 3  
24  11/18 R  Sorting and Searching  Preview
Selected slides 
Bubble.m, BubbleSort1.m, BubbleSort.m, ShowBubbleSort.m, InsertionSort.m, ShowInsertionSort.m, Eg8_2.m  8.2, 9.1 
25  11/23 T  Divide and Conquer  Preview
Selected slides 
binarySearch.m, showBinarySearch.m, mergeSort.m, merge.m, showMergeSort.m  9.2, 9.3 
11/2526  Thanksgiving Break  
26  11/30 T  Recursion; Efficieny Considerations  Preview
Selected slides 
compareInsertMerge.m, insertSortInplace.m, mergeSort.m, merge.m, removeChar_loop.m, removeChar.m,  14.1, 14.2 
27  12/2 R  Models and Simulation  Preview
Selected slides 
Update.m, StatVec.m, PageRank0.m  
12/2 R  Programming Project 6 due  
12/10 F  Final Exam 