Path: Common/Interface
% An example s-function that interfaces mfiles to Simulink. It implements the function dx/dt = f( t, x, u ); This is a simple simulation of an orbit. To customize this function you need to: - Edit the top of the main function to initialize your model - Edit ModelInitializeSizes to set up the model state, input and output dimensions - Edit ModelDerivatives to have your right hand side - Edit ModelOutputs to output your outputs -------------------------------------------------------------------------- Form: [sys, x0, str, ts] = SFunc( t, x, u, flag ) -------------------------------------------------------------------------- ------ Inputs ------ t Time x State u Inputs flag Simulink control flag ------- Outputs ------- ssys, x0, str, ts Required Simulink outputs --------------------------------------------------------------------------
AC: ACData/ACTConstants SC: SCData/sCTConstants Common: CommonData/Constants Common: CommonData/xSplashSmall Common: Database/Constant Common: General/DeleteCell Math: Linear/Mag
Back to the Common Module page