{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

E7+Discussion+2010-07-09

# E7+Discussion+2010-07-09 - Friday July 9 2010 E7 DISCUSSION...

This preview shows pages 1–6. Sign up to view the full content.

Friday, July 9, 2010 E7 DISCUSSION SECTION

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Outline Comments on Lab 4 r Recursion and Induction See Prof. Packard’s slides ( http://jagger.berkeley.edu/~pack/e77/ ) r Debugging Using the Editor Toolbar Breakpoints Call stack Executing code line-by-line r Quick Intro to Handle Graphics Handles Setting and Getting Properties Embedded Application Data Callbacks
Lab Assignment 4 Problem 1(c): Use your my_factorial function to compute 0!, 1!, 5!, and 10! r Problem 1(d): The exp_app function does not need to be vectorized r Problem 3(a): Note that == is not a logical operator r Make sure your answers show up in your published output r Make sure you submit the following items in one ZIP file: All of your m-files The html folder, which contains your published HTML output and the image files

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Programming Errors Syntax errors: code contains an illegal expression, independent of the values of the variables (easiest to fix) These are underlined in red in the Editor If you try to run, MATLAB throws an error and tells you where to look A(1} Runtime errors: logical errors that result in an illegal expression for specific values of the data (harder to fix) MATLAB catches the error as the code runs and suggests where to look A = [1 1]; B = [1 1 1]; A == B Logical errors: program executes completely, but the resulting answer is incorrect (hardest to fix) >> my_factorial(5) ans = 6
Debugging in MATLAB Debugging is the process of finding and fixing bugs r General debugging procedure 1.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 14

E7+Discussion+2010-07-09 - Friday July 9 2010 E7 DISCUSSION...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online