仿真__SIMULINK__sfunction.pptVIP

  • 15
  • 0
  • 约 26页
  • 2015-08-15 发布于湖北
  • 举报
仿真__SIMULINK__sfunction.ppt

计算机仿真软件 2、S-function是如何工作的? 例2 连续系统 例3 范德波尔方程(van del pol equation) 连续时间模块 csfunc.m 主要结构 function [sys,x0,str,ts] = csfunc(t,x,u,flag) switch flag, case 0, [sys,x0,str,ts]=mdlInitializeSizes(A,B,C,D); case 1, sys=mdlDerivatives(t,x,u,A,B,C,D); case 3, sys=mdlOutputs(t,x,u,A,B,C,D); case { 2, 4, 9 }, sys = []; otherwise error([Unhandled flag = ,num2str(flag)]); end 离散时间模块 dsfunc.m 主要结构 function [sys,x0,str,ts] = dsfunc(t,x,u,flag) switch flag, case 0, [sys,x0,str,ts] = mdlInitializeSizes(A,B,C,D); case 2, sys

文档评论(0)

1亿VIP精品文档

相关文档