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.

Chapter 1: Introduction to MATLAB

Chapter 1: Introduction to MATLAB

pp. 1-26

Authors

, Pennsylvania State University
Resources available Unlock the full potential of this textbook with additional resources. There are free resources and Instructor restricted resources available for this textbook. Explore resources
  • Add bookmark
  • Cite
  • Share

Summary

Quick Overview

This chapter is not intended to be a comprehensive manual of MATLAB®. Our sole aim is to provide sufficient information to give you a good start. If you are familiar with another computer language, and we assume that you are, it is not difficult to pick up the rest as you go.

MATLAB is a high-level computer language for scientific computing and data visualization built around an interactive programming environment. It is becoming the premiere platform for scientific computing at educational institutions and research establishments. The great advantage of an interactive system is that programs can be tested and debugged quickly, allowing the user to concentrate more on the principles behind the program and less on programming itself. Because there is no need to compile, link, and execute after each correction, MATLAB programs can be developed in a much shorter time than equivalent FORTRAN or C programs. On the negative side, MATLAB does not produce stand-alone applications – the programs can be run only on computers that have MATLAB installed.

MATLAB has other advantages over mainstream languages that contribute to rapid program development:

  • • MATLAB contains a large number of functions that access proven numerical libraries, such as LINPACK and EISPACK. This means that many common tasks (e.g., solution of simultaneous equations) can be accomplished with a single function call.

  • • Extensive graphics support allows the results of computations to be plotted with a few statements.

  • • All numerical objects are treated as double-precision arrays. Thus there is no need to declare data types and carry out type conversions.

  • • MATLAB programs are clean and easy to read; they lack the syntactic clutter of some mainstream languages (e.g., C).

  • The syntax of MATLAB resembles that of FORTRAN. To get an idea of the similarities between these programming languages, let us compare the codes written in the two languages for solution of simultaneous equations Ax = b by Gauss elimination (do not worry about understanding the inner workings of the programs).

    About the book

    Access options

    Review the options below to login to check your access.

    Purchase options

    eTextbook
    US$137.00
    Hardback
    US$137.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