Below is the function wbw.m. This function will return the approximate bandwidth frequency, given the damping ratio and the rise or settling time. To use wbw.m in MATLAB, enter wbw at the command line. You will be prompted for a damping ratio. You will then be asked to enter 0 if you are using a settling time or 1 if you are using a peak time. Finally you will be asked for the desired settling or peak time, and the bandwidth frequency will be returned. Copy the following text into a file wbw.m, and save it where MATLAB will be able to find it (such as in the directory that you run MATLAB from).