Matlab IV

Mary PW Chin 钱碧慧博士
PhD (Wales), MSc (Surrey)
E-mail:

Matlab #1

Getting started

Matlab #2

Dice

Matlab #3

Circles

Matlab #4

Histograms

Matlab #4

Synopsis
  1. Reading and splitting strings from text files;
  2. Formatted printing;
  3. String arrays;
  4. 2D arrays;
  5. Descriptive statistics: mean, min, max, variance, standard deviation;
  6. Histograms.
Exercise
  1. For program version #2, mark out the:
    • variable names;
    • arguments;
    • functions;
    • keywords;
    • modules;
    • methods.
  2. Repeat Exercise 1 with program version #5.
  3. Repeat Exercise 1 with program version #6.
  4. Repeat Exercise 1 with program version #9.
  5. Draw the flowchart for program version #5.
  6. Draw the flowchart for program version #6.
  7. Draw the flowchart for program version #9.
  8. In this lesson we made multiple revisions to the program. Summarise the improvement in each version in three columns:
    versionimprovement in plain Englishtechnical modification in Matlab
    #1 to #2
    #2 to #3
    #3 to #4
    #11 to #12

    versionimprovement in plain Englishtechnical modification in Matlab
    #13 to #14
    #17 to #18

Matlab programming

Matlab #1

Getting started

Matlab #2

Dice

Matlab #3

Circles

Matlab #4

Histograms