Appendix C

Introduction to MATLAB®

MATLAB® is an abbreviation for MATrix LABoratory. It is a very powerful mathematical tool used to perform numerical computation using matrices and vectors to obtain two- and three-dimensional graphs. MATLAB can also be used to perform complex mathematical analysis.

Getting Started

1. Open MATLAB by clicking Start bapp03-math-0001 Programs bapp03-math-0002 MATLAB bapp03-math-0003 R2006a bapp03-math-0004 MATLAB R2006a.

2. Open a new M-file by clicking File bapp03-math-0005 New bapp03-math-0006 M-File.

3. Type the code in the M-File.

4. Save the file as fn.m (e.g., Lab1.m).

5. Simulate the code by doing one of the following:

(a) Click on Debug bapp03-math-0007 Run.

(b) Press F5

(c) On the tool bar, click the icon Run.

Use HELP by pressing F1.

Use % at the beginning of a line for comments.

Generating a -axis Data

x=Initial-Value: Increment:Final-Value;

Example:

x=1:0.001:5; ...

Get RF Power Amplifier, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.