Spring 2017

Section 11: Thursday 2-3:30 (Class Number 18199)

Section 12: Thursday 5-6:30 (Class Number 18200)

Class will be held in Evans B3A located in the basement.

A 1 unit P/NP class related to Math 128A and MATH 170 that covers basic programming in MATLAB. Students are expected to have little experience or no experience with programming. See schedule for topics.

Students planning to take MATH 128A or MATH 170 in a later semester are encouraged to enroll in class.

There are 6 homework assignments each worth 1 point. There are 2 projects each worth 2 points. See schedule for posting and dates.

Guidelines for homework and project:

- Upload files to bCourses . Do not zip multiple files.
- Your code must be uploaded as .m file
- Your output must be uploaded as .txt file (see links)
- Your figures must be uploaded as .pdf file (see links)
- No late homework will be accepted.
- Code must be indented and commented. Figures should have titles

The textbook Introduction to MATLAB Programming by J. Dorfman, Decagon Press, Inc is recommended for those students taking MATH 128A. It is available at Krisha Copy Center on University Avenue for about $20 + tax. Please email them your order at orders@krishnacopy.com. Specify name and phone number. It will be available for pick up later.

MATLAB will be available during class in the computer lab Evans B3A. MATLAB can be obtained at UC Berkeley Software Central for student owned computers.

Week | Topic | Slides | Code | Textbook | |||

1 | assignment | Lecture 1 | problem_1_1.m , problem_1_2.m | vL 1.1, vL 1.2 | |||

2 | iteration | Lecture 2 | problem_2_1.m , problem_2_2.m , CalcCents.m | vL 2.1, vL 3.2 | |||

3 | functions | Lecture 3 | problem_3_1.m , probelm_3_2.m , SquaringPlot.m | vL 5.3, vL 7.1 | |||

4 | recursion | Lecture 4 | problem_4_1.m , problem_4_2.m , BisectionAnimation.m | vL 9.3, Dorf 14 | |||

5 | data | Lecture 5 | problem_5_1.m , problem_5_2.m , Newton_Animation.m | vL 4.3, vL 9.2 | |||

6 | graphics | Lecture 6 | Exercise.m , Plotter.m , LangtonAntAnimation.m | vL 4.2, vL 7.3 | |||

02/09 | simplex algorithm | README.txt | Demo.m , PhaseI.m , Pivot.m , PhaseII.m | MATH 170 |

Homework 1 | Homework 2 | Homework 3 | Homework 4 | Homework 5, LangtonAntPlot.m | Homework 6 |

Jan. 26 | Feb. 2 | Feb. 9 | Feb. 16 | Feb. 23 | Mar. 2 |

Project 1 | Project 2 |

May 9 | May 9 |

Copying output in command window to .txt file

Saving figure as .pdf file