

Table of Contents
5. Matlab Lecture 5
For a practical example for problem solving with Matlab we will focus on the basic workings of the Segway. This includes working with mfiles, setting up functions, and working with and plotting 2 and 3dimensional data. The physics of the Segway are described and set up in the respective lectures, drawing from general equations and simplifying assumptions. We begin by computing a few basic parameters that are not revealed in any Segway documentation, but which we need in order to compute other facts of interest. We will simulate hypothetical scenarios of different batteries and different weights of travellers. By the end of lecture 5, we will be able to place a Segway on a given terrain, and compute how far the Rider + Segway are able to travel.
The following file are used in today's lecture and future exercises and assignments.

