lecture11bw - [a,b,c] = xlsread(excelData); y = @getit;...

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

View Full Document Right Arrow Icon
E7, Lecture 1; Oct 6, 2008; M. Frenklach 1 Lecture 11 Debugging (textbook: 4.6) 1 Examine variable values remove semicolons display intermediate variable values examine variables in the workspace panel examine variables class 2 Use Editor features color coding smart indentation matching parentheses M-Lint Cell mode 3
Background image of page 1

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

View Full DocumentRight Arrow Icon
E7, Lecture 1; Oct 6, 2008; M. Frenklach 2 Use Debug options set breakpoints use Step to advance one step at a time use Step In to enter functions dbstep , dbquit , … 4 function y = getemailaddress(excelData)
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: [a,b,c] = xlsread(excelData); y = @getit; function getit(name) ind = strmatch(upper(name),upper(c(:,1))); if isempty(ind) disp( 'no match found' ) elseif length(ind) > 1 for i = 1:length(ind) dispLine(ind(i)); end else dispLine(ind); end function dispLine(index) disp([c{index,1} ': ' c{index,2}]) end end end 5 Summary: What did we learned today? • debugging • examine variable values • use editor options / M-Lint • Cell Mode • Debug options 6...
View Full Document

This note was uploaded on 11/01/2009 for the course ENGLISH 7 taught by Professor Sengupta during the Spring '09 term at Berkeley.

Page1 / 2

lecture11bw - [a,b,c] = xlsread(excelData); y = @getit;...

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

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