For contact information about worldwide offices, see the Math Works Web site. Writing S-Functions COPYRIGHT 1998-2002 by The Math Works, Inc. The software described in this document is fur d under a license agreement. The software may be used or copied only under the terms of the license agreement. No part of this manual may be photocopied or repro-