Technical data
LibSystemDerivativeCustomCode
4
-56
LibSystemDerivativeCustomCode
Purpose
Places code at the top or bottom of a system’s derivative function
Syntax
%<LibSystemDerivativeCustomCode(buffer, location)>
Arguments
buffer
Buffer to append to internal cache buffer.
location
"header"
(place at top of function).
"trailer"
(place at bottom of function).
Description
Use this function to place code at the top or bottom of a system’s derivative
function by specifying
"header"
or
"trailer"
, respectively.
This function generates an error if you attempt to add code to a subsystem that
does not have any continuous states. Each call to this function appends your
buffer to the internal cache buffer.