Matlab Files

bisect.m A basic implementation of the bisection algorithm for solving f(x)=0
demobisect.m A script that demonstrates the use of bisect.m. This script also requires func.m
func.m A function used in demobisect.m.

vanderpol.m Vector field for the van der Pol equation (with two parameters)
solscript.m A script that demonstrates the use of MATLAB's ODE solver. This script requires vanderpol.m

pulse1.m A Matlab function that creates periodic pulses with a given "width" and amplitude 1.  
pulse2.m A Matlab function that creates periodic pulses with a given "width" and area 1. Example
pulse3.m A Matlab function that creates periodic pulses with a given "width" and period, and with height 1.  
pulse4.m A Matlab function that creates periodic pulses with a given "width" and period, and with area 1.  
smoothstep.m smoothstep(t) returns: 0 if t < 0; 1 if t > 1; and p(t) if 0 < t < 1, where p(t) is a polynomial that smoothly connects 0 to 1. All derivatives up to and including the fourth are zero at t=0 and t=1. Example

one_coin_one_die.m A simulation of the "Coin and Die" game that I use to demonstrate absorbing Markov chains. Sample output


Some MATCONT files

hopftest.m MATLAB file for an example of using MATCONT
htscript.m A script that demonstrates the use of MATCONT. This script also requires hopftest.m
ht.eps, ht.gif Plot created by htscript.m