{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

matlab_tony

# matlab_tony - Introduction to MATLAB Anthony J O'Connor...

This preview shows pages 1–4. Sign up to view the full content.

Matlab introduction 1 Introduction to MATLAB Anthony J. O’Connor School of Science, Griffith University, Brisbane, Australia 1. What is MATLAB ? MATLAB started as an interactive program for doing matrix calculations and has now grown to a high level mathematical language that can solve integrals and differential equations numerically and plot a wide variety of two and three dimensional graphs. In this subject you will mostly use it interactively and also create MATLAB scripts that carry out a sequence of commands. MATLAB also contains a programming language that is rather like Pascal. The first version of Matlab was produced in the mid 1970s as a teaching tool. The vastly expanded Matlab is now used for mathematical calculations and simulation in companies and government labs ranging from aerospace, car design, signal analysis through to instrument control & financial analysis. Other similar programs are Mathematica and Maple. Mathematica is somewhat better at symbolic calculations but is slower at large numerical calculations. Recent versions of Matlab also include much of the Maple symbolic calculation program. In this lab you will cover the following basic things: using Matlab as a numerical calculator entering row vectors and column vectors entering matrices forming matrix and vector products doing matrix products, sums etc using Matlab to solve linear equations Matlab functions that operate on arrays Plotting basic graphs using Matlab.

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

View Full Document
Matlab introduction 2 1 How to get started When the computer has started go through the following steps in the different menus Look for the Network Applications folder and double click on that Within this you will see a little icon for Matlab61 – double click on that Within about 30 seconds Matlab will open (you may get a little message box about ICA applications – just click OK on this) You should now see a screen like the picture below This is the Matlab screen – it broken into 3 parts On the right you have the Command Window – this is where you type commands and usually the answers (or error messages) appear here too On the top left you have the Workspace window – if you define new quantities (called variables) there names should be listed here. On the bottom left you have Command History window – this is where past commands are remembered. If you want to re-run a previous command or to edit it you can drag it from this window to the command window to re-run it.
Matlab introduction 3 2.1 The Matlab prompt is >> . Look at the Command Window and you will see the cursor flickerring after the >> prompt. This means that Matlab is waiting for further instructions. 2.2 Seeing the Matlab demo. Just type the command >> demo (and then press Enter or Return key) and run the simple slideshow under the Matrix manipulation option.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}