Go to main content.

Michael Berks, established in 1982.
 
  • Home
  • Research
  • Publications
  • Matlab tutorial course
  • Personal details
  • Other links
 


The following materials are available to download as part of the Matlab and Python tutorial course I teach. In 2021/22 the course will take place on Monday afternoons from 2.00pm to 5.00pm. The first session will be on 31st Oct, with 3 lectures before Christmas, and then a further 3 lectures in the new year. If you would like to attend are not on this year's mailing list, please email me.

I will add the course slides, tutorial exercises and sample code on a week by week basis below. The material for future weeks is being updated so the complete course is not currently available to download. A zip file containing all materials will be made available at the end of the course. However, if you are unable to attend the course and would like this now please contact me personally and I will send you an archive of last year's course.

  • Week 1 (31/10/2022):
    • Slides
    • Startup file - save this into your home Matlab directory
    • Code samples
      • Sample function for computing seconds in years
      • Sample function for computing gravitation force
      • Python solution for computing seconds in years
      • Python solution for computing gravitation force
  • Week 2 (07/11/2022):
    • Slides
    • Tutorial exercises
    • Code samples
      • Sample script for creating and manipulating arrays in Matlab
      • Sample script for creating and manipulating arrays in Python
      • Sample script for playing with the Einstein and Trump images in Matlab
      • Sample script for playing with the Einstein and Trump images in Python
    • Data
      • MRI of the abdomen
      • Images of Einstein and Trump
  • Week 3 (14/11/2022 - 9:00am - 12.00pm):
    • Slides
    • Tutorial exercises
    • Code samples
      • Sample script for showing different datatypes Matlab
      • Sample script for showing different data types in Python
      • Sample script for organising data in Matlab
    • Data
      • Image of nailfold capillaries for the tutorial exercise
  • Week 4 (06/02/2023 - 10:00am - 12.00pm):
    • Slides
    • Code samples - slides
      • Sample script for showing different examples of loops in Matlab
      • Sample script for showing if/else Matlab
      • Sample function computing the minimum value of an array using for loops in Matlab
      • Sample script for showing if/else examples in Python
      • Sample script computing the minimum value of an array using for loops in python
    • Code samples - tutorial
      • Sample function to simulate rolling a dice in Matlab
      • Sample answer to dice rolling tutorial in Matlab
      • Sample answer to dice rolling tutorial in Matlab
      • Sample answer to dice rolling tutorial in Matlab
      • Sample answer to dice rolling tutorial in python
  • Week 5 (13/02/2023 - 10:00am - 12.00pm):
    • Slides
    • Tutorial exercises
    • Data
      • Zip file of retinograms for the tutorial exercise
    • Code samples - tutorial
      • Sample script to load and process retinograms in Matlab
      • Sample script to load and process retinograms in python
  • Week 6 (20/02/2023 - 10:00am - 12.00pm):
    • Slides
    • Tutorial exercises
    • Data
      • Zip file of Travastin liver MRI data for the tutorial exercise
      • Sample Zip file of retinogram ROC curves to download and extract into your data folder
      • Sample A .mat file of a mammogram to save into your data folder
      • Sample A .mat file of (x,y) coordinates marking the border of the cancer
      • Sample A JPG image highlighting a cancer within the mammogram above
      • Sample A JPG image of a face
      • Sample A .mat file with (x,y) coordinates points on the face
    • Code samples
      • Sample script with examples good programming practice
      • A horrible function with NO comments, NO tabs etc!!
      • A good function with good programming style...
      • They both do exeactly the same thing, but which is easier to work with?
      • 3 sample functions needed for the programming tips script: one, two, and three
      • Sample script to answer the Travastin part of the tutorial exercises
  • The End!!
  •  

    Michael Berks, Imaging Sciences, University of Manchester, Stopford Building, Oxford Road, Manchester, M13 9PT. 0161 275 5285

    This website will look much better in a web browser that supports web standards, but it is accessible to any browser or Internet device.