Chapter 1. Introduction to MATLAB ® and Its Graphics Capabilities

Chapter 1. Introduction to MATLAB ® and Its Graphics Capabilities

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
0-8493-????-?/00/$0.00+$.50 © 2000 by CRC Press LLC © 2001 by CRC Press LLC 1 Introduction to MATLAB ® and Its Graphics Capabilities 1.1 Getting Started MATLAB can be thought of as a library of programs that will prove very use- ful in solving many electrical engineering computational problems. MAT- LAB is an ideal tool for numerically assisting you in obtaining answers, which is a major goal of engineering analysis and design. This program is very useful in circuit analysis, device design, signal processing, Flter design, control system analysis, antenna design, microwave engineering, photonics engineering, computer engineering, and all other sub-Felds of electrical engi- neering. It is also a powerful graphic and visualization tool. The Frst step in using MATLAB is to know how to call it. It is important to remember that although the front-end and the interfacing for machines with different operating systems are sometimes different, once you are inside MAT- LAB, all programs and routines are written in the same manner. Only those few commands that are for Fle management and for interfacing with external devices such as printers may be different for different operating systems. After entering MATLAB, you should see the prompt >> , which means the program interpreter is waiting for you to enter instructions. (Remember to press the Return key at the end of each line that you enter.) Now type clf . This command creates a graph window (if one does not already exist) or clears an existing graph window. Because it is impossible to explain the function of every MATLAB com- mand within this text, how would you get information on a certain command syntax? The MATLAB program has extensive help documentation available with simple commands. ±or example, if you wanted help on a function called roots (we will use this function often), you would type help roots . Note that the help facility cross-references other functions that may have related uses. This requires that you know the function name. If you want an idea of the available help Fles in MATLAB, type help . This gives you a list of topics included in MATLAB. To get help on a particular topic such as the Optimization Toolbox, type help toolbox/optim . This gives you a list of
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
© 2001 by CRC Press LLC all relevant functions pertaining to that area. Now you may type help for any function listed. For example, try help fmin . 1.2 Basic Algebraic Operations and Functions The MATLAB environment can be used, on the most elementary level, as a tool to perform simple algebraic manipulations and function evaluations. Example 1.1 Exploring the calculator functions of MATLAB. The purpose of this example is to show how to manually enter data and how to use basic MATLAB alge- braic operations. Note that the statements will be executed immediately after they are typed and entered (no equal sign is required).
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/19/2010 for the course ENGINEERIN ELEC121 taught by Professor Tang during the Spring '10 term at University of Liverpool.

Page1 / 26

Chapter 1. Introduction to MATLAB ® and Its Graphics Capabilities

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online