E7+Discussion+2010-07-09

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

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

View Full Document Right Arrow Icon
Friday, July 9, 2010 E7 DISCUSSION SECTION
Background image of page 1

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

View Full DocumentRight Arrow Icon
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
Background image of page 2
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
Background image of page 3

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

View Full DocumentRight Arrow Icon
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
Background image of page 4
Debugging in MATLAB Debugging is the process of finding and fixing bugs r General debugging procedure 1. Set a breakpoint 2. Run the program, which will stop at the breakpoint 3.
Background image of page 5

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

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 08/14/2010 for the course E 7 taught by Professor Patzek during the Summer '08 term at University of California, Berkeley.

Page1 / 14

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

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online