------------------------------------------------------------------------------- Triggers a failure at time tFail. Sets the failed parameter to pFail. ------------------------------------------------------------------------------- Form: [c, d] = DCMotorFailures( failure, t, dT, c, d, tFail, pFail ) ------------------------------------------------------------------------------- ------ Inputs ------ failure (1,:) Failure type t (1,1) Time dT (1,1) Time step (sec) c (5,4) State output matrix d (1,1) Motor structure tFail (1,1) Time of failure pFail (1,1) Set the failed parameter to this value ------- Outputs ------- c (5,4) State output matrix d (1,1) Motor structure -------------------------------------------------------------------------------