An interactive introduction to MATLAB

(Jeff_L) #1

  • 0.1 What isMATLAB?

  • 0.2 How isMATLABused in industry?

  • 1 basic concepts

    • 1.1 MATLABin the School of Engineering

    • 1.2 TheMATLABenvironment

    • 1.3 Basic calculations

    • 1.4 Variables and arrays

    • 1.5 Solving systems of linear equations



  • 2 plotting

    • 2.1 Simple 2dplotting

      • 2.1.1 Multiple plots in one Figure Window



    • 2.2 Curve-fitting

    • 2.3 3 dplotting using plot3 and surf



  • 3 scripts and functions

    • 3.1 Script files

    • 3.2 Functions



  • 4 decision making

    • 4.1 Relational and logical operations

    • 4.2 The if-else statement



  • 5 loops

    • 5.1 for loops

    • 5.2 while loops



  • a advanced topic: the switch statement

  • b advanced topic: vectorisation

  • c additional exercises

    • c.1 Basic Concepts

    • c.2 Plotting

    • c.3 Scripts and Functions

    • c.4 Decision Making

    • c.5 Loops



  • bibliography

  • TheMATLABdesktop L I S T O F S C R E E N C A S T S

  • Exercise 1 Solutions

  • Variables and simple arrays

  • The dot operator

  • Indexing arrays

  • Exercise 2 Solutions

  • Creating a simple plot

  • Plotting experimental data

  • Exercise 3 Solutions

  • Basic Curve-fitting

  • Exercise 4 Solutions

  • Creating a simple script

  • Exercise 5 Solutions

  • Creating a function

  • Exercise 6 Solutions

  • The if-else statement

  • Exercise 7 Solutions

  • The for loop

  • The while loop

  • Exercise 8 Solutions

  • Exercise 1: Basic calculations L I S T O F E X E RC I S E S

  • Exercise 2: Variables and arrays

  • Exercise 3: Simple 2 d plotting

  • Exercise 4: 3 d plotting

  • Exercise 5: Scripts

  • Exercise 6: Functions

  • Exercise 7: Decision making

  • Exercise 8: Loops

  • Table 1 Arithmetic operations L I S T O F TA B L E S

  • Table 2 Element-by-element arithmetic operations

  • Table 3 Line styles in plots

  • Table 4 Colours in plots

  • Table 5 Function definitions, filenames, input and output variables

  • Table 6 Relational operators

  • Table 7 Logical operators

  • Table 8 Friction experiment results

  • Table 9 Results of a tension test on an aluminium specimen

    • of gases Table 10 Coefficients for the cubic equation for the heat capacity



Free download pdf