Matlab: A Practical Introduction to Programming and Problem Solving (Google eBook)
Assuming no knowledge of programming, this book presents both programming concepts and MATLAB’s built-in functions, providing a perfect platform for exploiting MATLAB’s extensive capabilities for tackling engineering problems. It starts with programming concepts such as variables, assignments, input/output, and selection statements, moves onto loops and then solves problems using both the ‘programming concept’ and the ‘power of MATLAB’ side-by-side. In-depth coverage is given to input/output, a topic that is fundamental to many engineering applications.
* 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
¼¼ algorithm anonymous function ans¼ ASCII assignment statement augmented matrix blanks built-in function calculate and return Call a function callback function calling the function cell array Chapter character encoding color colormap column vector Command Window complex number data file default display element end end Enter a positive equations error message error-check example of calling expression Figure Window fopen format fprintf function call function header Graphical user interfaces identity matrix if-else statement input argument input('Enter iterate length loop variable mat ¼ mat¼ MATLAB matrix multiplication multiplication mynum nested nested function number of rows operator output arguments passed polynomial positive number prompt the user QUICK QUESTION radius random integer range real number recursive result row vector runsum shown in Figure specified square matrix string subplot switch statement temperature text box user enters vector of structures Write a function Write a script