Oops -- I didn't edit my own post in time.
Here's the sample code I used:

And here are the resultant plots:


Result of plot(t,M):

Hopefully this answers your question. If not let me know and I'll try to help you out.
Regards,
Simon H
Applications Engineer
National Instruments
http://www.ni.com/support/
Message Edited by Simon H on
12-10-2007 05:32 PM