主要内容

ssIsVariableStepSolver

确定是否使用变步长求解器来求解s函数

语法

boolean_T ssIsVariableStepSolver (SimStruct *年代)

参数

年代

表示s -功能块或Simulink的SimStruct金宝app®模型。

返回

布尔值真正的如果求解器被用来求解年代是一个变步长求解器。否则,返回

描述

用于确定模拟是使用变量求解器还是固定步长求解器求解。当您创建具有零交叉和继承的样本时间的s函数时,这是非常有用的。

语言

C, c++

例子

看到这个功能vsfunc.c中使用的sfcndemo_vsfunc和功能sfun_atol.c中使用的sfcndemo_sfun_atol

另请参阅

ssGetSimModessGetSolverName

之前介绍过的R2006a