Simulation with new equations

Have you looked at the information in these tutorials and forum posts?
http://neuroimage.usc.edu/brainstorm/Tutorials/TimeFrequency#Simulation