ML: conversion of exercise 4 to Matlab
ML: conversion of exercise 5 to Matlab
ML: conversion of exercise 6 to Matlab
ML: conversion of exercise 7 to Matlab