Download Computational Mechanics featuring Matlab
Transcript
Contents 0.1 0.2 0.3 Introduction – for the student . . . . . 0.1.1 How to read this book . . . . . 0.1.2 Extra credit for corrections! . . 0.1.3 Why computer programming in 0.1.4 Other references . . . . . . . . Introduction – for the instructor . . . 0.2.1 To the instructor who is new to 0.2.2 Intended audience . . . . . . . 0.2.3 Course design . . . . . . . . . . 0.2.3.1 Lecture portion . . . 0.2.3.2 Lab portion . . . . . . 0.2.3.3 Facilities required . . Features of this book . . . . . . . . . . 0.3.1 General features . . . . . . . . 0.3.2 Course timing . . . . . . . . . . 0.3.3 Projects . . . . . . . . . . . . . 0.3.4 Additional topics . . . . . . . . 0.3.5 Chapter by chapter content . . 1 Hello World! 1.1 Steps to “Hello World” . . . . . . . 1.2 “Hello World” . . . . . . . . . . . . 1.3 Getting help . . . . . . . . . . . . . 1.4 Browsing Help . . . . . . . . . . . 1.5 Matlab interactive mode . . . . . . 1.6 Operators and how to calculate . . 1.6.0.1 Exercise 2A . . . . 1.6.0.2 Exercise 2B . . . . 1.6.0.3 Exercise 2C . . . . 1.7 Variables and Memory . . . . . . . 1.7.1 “=” does not mean “Equal” 1.7.2 Variable Types . . . . . . . 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . physics . . . . . . . . . . . . . Matlab or . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . i . i . i . ii . ii . iii . iii . iii . iv . iv . iv . v . v . v . vi . vi . vii . vii . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 1 2 3 3 5 6 6 6 6 7 8