tailieunhanh - Lecture Physical modeling in MATLAB
Lecture Physical modeling in MATLAB has contents: Variables and values, scripts, loops, vectors, functions, zero-finding, functions of vectors, ordinary differential equations, systems of ODEs, second-order systems, optimization and interpolation,.and other contents. | Physical Modeling in MATLAB Allen B. Downey Version R ii Physical Modeling in MATLAB R Copyright 2014 Allen B. Downey Green Tea Press 9 Washburn Ave Needham MA 02492 Permission is granted to copy, distribute, and/or modify this document under the terms of the Creative Commons Attribution-NonCommercial Unported License, which is available at by-nc/. A The original form of this book is L TEX source code. Compiling this code has the effect of generating a device-independent representation of a textbook, which can be converted to other formats and printed. This book was typeset by the author using latex, dvips and ps2pdf, among other free, open-source programs. The LaTeX source for this book is available from . MATLAB R is a registered trademark of The Mathworks, Inc. The Mathworks does not warrant the accuracy of this book; they probably don’t even like it. Preface Most books that use MATLAB are aimed at readers who know how to program. This book is for people who have never programmed before. As a result, the order of presentation is unusual. The book starts with scalar values and works up to vectors and matrices very gradually. This approach is good for beginning programmers, because it is hard to understand composite objects until you understand basic programming semantics. But there are problems: • The MATLAB documentation is written in terms of matrices, and so are the error messages. To mitigate this problem, the book explains the necessary vocabulary early and deciphers some of the messages that beginners find confusing. • Many of the examples in the first half of the book are not idiomatic MATLAB. I address this problem in the second half by translating the examples into a more standard style. The book puts a lot of emphasis on functions, in part because they are an important mechanism for controlling program complexity, and also because they are useful for working with .
đang nạp các trang xem trước