Matlab: A Practical Introduction to Programming and Problem SolvingMATLAB: A Practical Introduction to Programming and Problem Solving discusses the basic programming concepts and skills needed for problem solving using MATLAB software. It is the only book that gives a full introduction to programming in MATLAB combined with an explanation of MATLAB’s powerful functions. The book differs from other texts in that it teaches programming concepts and the use of the built-in functions in MATLAB simultaneously. It presents programming concepts and MATLAB built-in functions side-by-side, giving students the ability to program efficiently and exploit the power of MATLAB to solve problems. The systematic, step-by-step approach, building on concepts throughout the book, facilitates easier learning. Starting with basic programming concepts, such as variables, assignments, input/output, selection, and loop statements, problems are introduced and solved throughout the book. The book is organized into two parts. Part I covers the programming constructs and demonstrates programming versus efficient use of built-in functions to solve problems. Part II describes the applications, including plotting, image processing, and mathematics, needed in basic problem solving. The chapters feature sections called "Quick Question!" as well as practice problems designed to test knowledge about the material covered. Problems are solved using both "The Programming Concept" and "The Efficient Method," which facilitates understanding the efficient ways of using MATLAB, and also the programming concepts used in these efficient functions and operators. There are also sections on ‘common pitfalls’ and ‘programming guidelines’ that direct students towards best practice. This book is ideal for engineers learning to program and model in MATLAB, as well as undergraduates in engineering and science taking a course on MATLAB. * Presents programming concepts and MATLAB built-in functions side-by-side, giving students the ability to program efficiently and exploit the power of MATLAB to solve problems.* In depth coverage of file input/output, a topic essential for many engineering applications* Systematic, step-by-step approach, building on concepts throughout the book, facilitating easier learning* Sections on ‘common pitfalls’ and ‘programming guidelines’ direct students towards best practice |
From inside the book
Results 1-5 of 87
... .................................... 67 2.7.4 Passing Multiple arguments ..................................... 67 2.7.5 functions with Local Variables.................................. 68 Selection Statements...............
... .................................... 167 5.1.4 Passing arguments to functions ............................ 168 5.2 MaTLaB Program Organization....................................... 170 5.2.1 Modular Programs..................
... passed to the function in parentheses. Most functions then return value(s). For example, to find the absolute value of –4, the following expreswhich is a call to the function abs. The number in the parentheses, the –4, is the argument ...
... passing different values to the functions: some negative, some positive, some with fractions less than 0.5 and some greater. It is very important when testing functions that you thoroughly test by ans = –1 >> sign(3) ans = 1 trying ...
... passed to the rand function. Here are two examples of calling the rand function: >> rand ans = 0.9501 >> rand ans = 0.2311 The seed for the rand function will always be the same each time MATLAB is started, unless the state is changed ...
Other editions - View all
Matlab: A Practical Introduction to Programming and Problem Solving Stormy Attaway Limited preview - 2011 |
Matlab: A Practical Introduction to Programming and Problem Solving Stormy Attaway Limited preview - 2011 |