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).
Review the options below to login to check your access.
Log in with your Cambridge Aspire website account to check access.
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.