Book contents
- Frontmatter
- Contents
- Preface
- 1 Getting Started
- 2 MATLAB Basics
- 3 Interacting with MATLAB
- Practice Set A: Algebra and Arithmetic
- Practice Set B: Calculus, Graphics, and Linear Algebra
- 6 MATLAB Programming
- 7 Publishing and M-Books
- 8 Simulink
- 9 ☆ GUIs
- 10 Applications
- Practice Set C: Developing Your MATLAB Skills
- Solutions to the Practice Sets
- Glossary
- Index
10 - Applications
Published online by Cambridge University Press: 05 September 2012
- Frontmatter
- Contents
- Preface
- 1 Getting Started
- 2 MATLAB Basics
- 3 Interacting with MATLAB
- Practice Set A: Algebra and Arithmetic
- Practice Set B: Calculus, Graphics, and Linear Algebra
- 6 MATLAB Programming
- 7 Publishing and M-Books
- 8 Simulink
- 9 ☆ GUIs
- 10 Applications
- Practice Set C: Developing Your MATLAB Skills
- Solutions to the Practice Sets
- Glossary
- Index
Summary
In this chapter, we present examples showing you how to apply MATLAB to problems in several disciplines. Each example is presented in the form of a MATLAB M-file, published to LATEX. We modified the default style sheet for publishing to LATEX to adjust the spacing between input, output, and text, and to allow formatting of mathematical formulas not just as displayed equations but also within a paragraph. We also made a few minor adjustments to the published LATEX code to improve line breaks. Finally, because publish does not produce italic text, we used bold text instead in places. These examples are illustrations of the kinds of polished, integrated documents that you can create with MATLAB. The examples are:
Illuminating a Room
Mortgage Payments
Monte Carlo Simulation
Population Dynamics
Linear Economic Models
Linear Programming
The 360° Pendulum
☆ Numerical Solution of the Heat Equation
☆ A Model of Traffic Flow
We have not explained all the MATLAB commands that we use; you can learn about the new commands from the online help. Simulink is used in A Model of Traffic Flow and as an optional accessory in Population Dynamics and Numerical Solution of the Heat Equation. The example on Linear Programming also requires an M-file found (in slightly different forms) in the Simulink and Optimization toolboxes. The examples require different levels of mathematical background and expertise in other subjects.
- Type
- Chapter
- Information
- A Guide to MATLABFor Beginners and Experienced Users, pp. 131 - 194Publisher: Cambridge University PressPrint publication year: 2006