| Course: | Transition to MATLAB -- Lecture-based course (1 credit) |
| Instructor: | K.-Y. Daisy Fan |
| Website: | http://www.cs.cornell.edu/courses/cs1132/2013sp/lec |
| Lecture (001): | MoWe 2:30-3:20pm | Phillips 101 |
| Lab1 (Dis201): | F 1:25-2:15pm | Upson B7 |
| Lab2 (Dis202): | F 2:30-3:20pm | Upson B7 |
| Instructor: | K.-Y. Daisy Fan | dfan at cs.cornell.edu | Office hour Fri 3:30-4:30p | Upson 5141 |
| TA: | Gabe Greenberg | prg53 at cornell.edu | Office hour Thur 1:00-3:00p | Upson 328B |
| Consultants: | Consulting hours Sunday to Thursday 5-10pm Carpenter Hall ACCEL Green Rm (2nd flr) | |||
Multiple submissions are allowed in order to help you achieve mastery. For each assignment, if your first submission isn't perfect you may correct and re-submit it once without penalty; each additional re-submission, if allowed, incurs a 10% deduction for that assignment. For the purpose of (re-)submission, Assignments 1a and 1b are considered separate assignments. We will accept a (re)submission that is late but within 24 hours of the deadline with a 10% penalty for that assignment. For each asssignment, penalties accumulate--carry forward--from (re)submission to resubmission.
Note that your assignment will receive a substantial point deduction if it is not properly annotated with comments. Always include concise comments in your code!
You may take each of Test 1 and Test 2 twice in order to improve your score. For each test, the final score is your most recent score.
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 class and to take notes for yourself. Topics and dates are subject to change.
| No. | Date | Topics | Lecture/Blecture | Program Examples | Reading (Chapman) |
| 1 | 1/28 Mo | Introduction, Matlab desktop, script |
Selected slides
Blecture: Matlab Desktop |
diffArea.m, diffAreaFun.m | Chapter 1 |
| 2 | 1/30 We | User-defined function, 1-d array, control flow |
Selected slides
Blecture: Common for-loop error |
mcPi.m, rollDie.m | Sec 2.1, 2.2, 3.3, 3.4, 4.1, 4.2, 5.1, 5.2 |
| 3 | 2/1 F | Lab 1 Vectors, functions, loops | rollDice.m, vectorQuery.m, sequence.m | Sec 2.13 | |
| 4 | 2/4 Mo | Vectorized arithmetic, graphics, matrix | Selected slides | mcPi_plot_vector.m, mcPi_plot_vectorized.m, plotComparison.m, showMultigraph.m, | Sec 2.8-2.11 |
| 2/4 Mo 11:59pm | Assignment 1a due | ||||
| 5 | 2/6 We | 2-d array (matrix), subfunction, detail on for-loop |
Selected slides
Blecture: Function memory |
minInNeighborhood.m, minInNeighborhoodV2.m, minInNeighborhoodV3.m, minInNeighborhood_sub.m | Sec 2.3, 2.4 |
| 6 | 2/8 Fr | Lab 2 Matrix | findInMatrix.m, matrixCSums.m, matrixCSums_nonvec.m | Sec 3.5, 3.6 | |
| 7 | 2/11 Mo | Review, char and strings | Selected slides | ||
| 2/11 Mo 11:59pm | Assignment 1b due | ||||
| 8 | 2/13 We | Test 1 | |||
| 9 | 2/15 Fr | Lab 3 Char and strings, vectorized logical operations | Blecture: Strings | countPattern.m, countPattern2.m, censor.m, toUpper.m | Sec 6.2 |
| 10 | 2/18 Mo | Cell array, file i/o | Selected slides | RomanNum.m cellArray2file.m, file2cellArray.m, proteinXYZData.m | |
| 11 | 2/20 We | Test 1 (2nd run, if necessary) | |||
| 12 | 2/22 Fr | Lab 4 Graphics | briefGraphicsDemoSP13.m, rectangles.m (skeleton), DrawRect.m, rectangles.m (solution) | Sec 5.3-5.8 | |
| 13 | 2/25 Mo | Vectorized logical operations, review | Selected slides | censor.m, showCensor.m | |
| 14 | 2/27 We | Help on Assignment 2 (Location: Stimson G25) | |||
| 2/28 Th 11:59pm | -->Assignment 2 due (related files) | ||||
| 15 | 3/1 Fr | Test 2 (Location: Upson B7 computer lab) | |||
| 16 | 3/6 We | Test 2 (2nd run, if necessary) (Location: Upson B7 computer lab, Time: 2:30-3:20pm) | |||