| Course: | Transition to MATLAB -- Lecture-based course (1 credit) |
| Instructor: | K.-Y. Daisy Fan |
| Website: | http://www.cs.cornell.edu/courses/cs1132/2013fa |
| Lecture (001): | TuTh 3:35-4:25pm | Phillips 203 |
| Lab1 (Dis201): | F 1:25-2:15pm | Upson B7 |
| Lab2 (Dis202): | F 2:30-3:20pm | Upson B7 |
| Instructors: | K.-Y. Daisy Fan | dfan at cs.cornell.edu | Office hour W 11a-noon (cancelled 9/11) |
Upson 5141 |
| Yue Gao | ygao at cs.cornell.edu | Office hour M 12-2p | 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 | 9/3 Tu | Introduction, Matlab desktop, script |
Selected slides
Blecture: Matlab Desktop |
diffArea.m, diffAreaFun.m | Chapter 1 |
| 2 | 9/5 Th | 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 | 9/6 Fr | Lab 1 Lab 1 Vectors, functions, loops | rollDice.m, vectorQuery.m, sequence.m | Sec 2.13 | |
| 4 | 9/10 Tu | Vectorized arithmetic, graphics, matrix | Selected slides | mcPi_plot_vector.m, mcPi_plot_vectorized.m, plotComparison.m, showMultigraph.m, minInMatrix.m | Sec 2.8-2.11 |
| 9/10 Tu 11:59pm | Assignment 1a due Assignment 1a Files | ||||
| 5 | 9/12 Th | 2-d array (matrix), subfunction, detail on for-loop |
Selected slides
Blecture: Function memory |
RandomLinks.m, CirclePoints.m, ShowRandomLinks.m minInNeighborhood.m, minInNeighborhoodV2.m, minInNeighborhoodV3.m, minInNeighborhood_sub.m | Sec 2.3, 2.4 |
| 6 | 9/13 Fr | Lab 2 Lab 2 Matrix | findInMatrix.m, matrixCSums.m, matrixCSums_nonvec.m | Sec 3.5, 3.6 | |
| 7 | 9/17 Tu | Review, char and strings | Selected slides | ||
| 9/17 Tu 11:59pm | Assignment 1b due Assignment 1b | ||||
| 8 | 9/19 Th | Test 1 | |||
| 9 | 9/20 Fr | Lab 3 Lab 3 Char and strings, vectorized logical operations | Blecture: Strings | countPattern.m, countPattern2.m, censor.m, toUpper.m | Sec 6.2 |
| 10 | 9/24 Tu | Cell array, file i/o | Selected slides | RomanNum.m cellArray2file.m, file2cellArray.m, proteinXYZData.m | |
| 11 | 9/26 Th | Test 1 (2nd run, if necessary) | |||
| 12 | 9/27 Fr | Lab 4 Lab 4 Graphics | briefGraphicsDemofa13.m, rectangles.m DrawRect.m, rectangles.m (solution) connectDots.m (skeleton), positions.mat (data), connect_dots,jpg (image) connectDotsSol.m (solution), | Sec 5.3-5.8 | |
| 13 | 10/1 Tu | Vectorized logical operations, review | Selected slides | censor.m, showCensor.m | |
| 14 | 10/3 Th | Help on Assignment 2 (Location: Stimson G25 computer lab) | |||
| 10/3 Th 11:59pm | -->Assignment 2 due Assignment 2 due (related files) | ||||
| 15 | 10/4 Fr | Test 2 (Location: Upson B7 computer lab) | |||
| 16 | 10/8 Tu | Test 2 (2nd run, if necessary) (Location: Stimson G25 computer lab) | |||