Skip to main content Accessibility help
Internet Explorer 11 is being discontinued by Microsoft in August 2021. If you have difficulties viewing the site on Internet Explorer 11 we recommend using a different browser such as Microsoft Edge, Google Chrome, Apple Safari or Mozilla Firefox.

A: MATLAB

A: MATLAB

pp. 625-639

Authors

, California State University, Sacramento, , North Dakota State University
Resources available Unlock the full potential of this textbook with additional resources. There are Instructor restricted resources available for this textbook. Explore resources
  • Add bookmark
  • Cite
  • Share

Summary

MATLAB (a registered trademark of MathWorks, Inc.) is a language and interactive environment for numeric computation, algorithm development, data analysis, and data visualization. It is particularly well suited for digital signal processing applications. While MATLAB is relatively simple to use, it is a sophisticated package that can be a bit intimidating to new users. Fortunately, there are many excellent resources on MATLAB and its use, including MATLAB's own built-in documentation. This appendix provides a brief introduction to MATLAB that complements the MATLAB material found throughout this book.

Scripts and Help

When MATLAB is launched, a command window appears. Users issue commands at the command prompt (≫), and MATLAB responds, generally with the creation or modification of workspace objects. MATLAB supports different types of workspace objects, such as functions and strings, but usually objects are just data. The workspace window summarizes the names and important characteristics of currently available objects.

While users can directly input sequences of commands at the command prompt, it is generally preferable to instead use a MATLAB script file (M-file). A MATLAB script file is simply a text file (.m extension) that contains a collection of MATLAB statements. Comments are inserted by preceding text with a percent sign (%). Any text editor can be used to create an M-file, but MATLAB's built-in editor provides added functionality such as color-coded text, breakpoints, and various other features. M-files are easy to modify and facilitate rapid algorithm development. M-files are executed directly from MATLAB's editor or by typing the M-file name (without the .m extension) at the command prompt.

About the book

Access options

Review the options below to login to check your access.

Purchase options

eTextbook
US$161.00
Hardback
US$161.00

Have an access code?

To redeem an access code, please log in with your personal login.

If you believe you should have access to this content, please contact your institutional librarian or consult our FAQ page for further information about accessing our content.

Also available to purchase from these educational ebook suppliers