MATLAB, Matrices, and Complex Arithmetic
It has become commonplace for engineers to use the MATLAB® computer program to perform a variety of technical calculations. MATLAB, short for MATrix LABoratory, is produced and supported by the company named The Math Works, which provides demos and application notes at its Web site, www.mathworks.com. In addition, MATLAB has extensive built-in help, as shown in Figure B.1.
In this appendix, we will first use MATLAB as a powerful calculator, then use it to solve equations involving matrices or complex numbers and, finally, use it to plot functions.
B.1 Using MATLAB as a Calculator
Consider the equation
Let's use MATLAB to evaluate D when A = 4, B = 7, and C = 6. To do so, we write the equations representing A, B, C, and D in the MATLAB workspace, using the arithmetic operations and functions available in MATLAB. Tables B.1 and B.2 list the arithmetic operations and some of the functions available in MATLAB.