Skip to main content Accessibility help
×
Hostname: page-component-77c89778f8-n9wrp Total loading time: 0 Render date: 2024-07-22T19:33:08.088Z Has data issue: false hasContentIssue false

1 - Introduction

Published online by Cambridge University Press:  08 February 2010

K. Chen
Affiliation:
University of Liverpool
Peter J. Giblin
Affiliation:
University of Liverpool
A. Irving
Affiliation:
University of Liverpool
Get access

Summary

First steps with MATLAB

If you haven't already done so, you should start MATLAB by doubleclicking the relevant icon with your mouse or by asking a friend sitting next to you to show you how. Asking a friend is often the quickest way to obtain help and, in what follows, we will encourage you to take this route when all else fails. If ‘clicking’ and ‘icons’ mean nothing to you, you may need some extra help in getting started with Windows. It might also be that your system doesn't use Microsoft Windows and that simply typing matlab will do the trick. For example, if you are using a Unix system of some kind this may be the case. If all goes well you will see a MATLAB prompt

>>

inviting you to initiate a calculation. In what follows, any line beginning with >> indicates typed input to MATLAB. You are expected to type what follows but not the >> prompt itself. MATLAB supplies that automatically.

Arithmetic with MATLAB

MATLAB understands the basic arithmetic operations: add is +, subtract is −, multiply is * and divide is /. Powers are indicated with ^, thus typing

results in

If you typed the above line and nothing happened, perhaps you omitted to press the <Enter> key at the end of the line. The laws of precedence are built in but, if in doubt, you should put in the brackets. For example

The sort of elementary functions familiar on hand calculators are also available.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 1999

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Introduction
  • K. Chen, University of Liverpool, Peter J. Giblin, University of Liverpool, A. Irving, University of Liverpool
  • Book: Mathematical Explorations with MATLAB
  • Online publication: 08 February 2010
  • Chapter DOI: https://doi.org/10.1017/CBO9780511624117.002
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Introduction
  • K. Chen, University of Liverpool, Peter J. Giblin, University of Liverpool, A. Irving, University of Liverpool
  • Book: Mathematical Explorations with MATLAB
  • Online publication: 08 February 2010
  • Chapter DOI: https://doi.org/10.1017/CBO9780511624117.002
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Introduction
  • K. Chen, University of Liverpool, Peter J. Giblin, University of Liverpool, A. Irving, University of Liverpool
  • Book: Mathematical Explorations with MATLAB
  • Online publication: 08 February 2010
  • Chapter DOI: https://doi.org/10.1017/CBO9780511624117.002
Available formats
×