Huang_Slides_Week02_02.pdf

Huang_Slides_Week02_02.pdf - CAAM210 Introduction to...

Info icon This preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
CAAM210: Introduction to Computational Engineering Wen Huang August 30, 2017
Image of page 1

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

View Full Document Right Arrow Icon
Outline Scope of variables Bisection method Bar cooling
Image of page 2
Scope of variables Variables A variable defined in a function is only visible in this function. (a local variable) Download “w02scopevariable01.m”. Run the code and understand it. Global variables A variable declared by “global” is a global variable Download “w02scopevariable02.m”. Run the code and understand it. Global variable is not recommended Download “w02testGlobalVariable.m”. Run the code and understand it.
Image of page 3

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

View Full Document Right Arrow Icon