1. 求数值积分quadl函数。被积函数表达式需要写成点乘(点操作)的形式, 否则要不积出的结果不对,要么报错。
2. simulink的打开错误:Unable to open the block or model file named '*'.
解决:路径不对,将当前路径切换到模块所在路径。
3. simulink运行时出现Warning: The model '*‘ does not have continuous states, hence using the solver 'VariableStepDiscrete' instead of the solver 'ode45' specified in the Configuration Parameters dialog.
这是一个警告,对仿真结果没有影响,去掉的方法是:Simulation -> Configuration Parameters中的solver选择'Discrete (no continuous states)'。
该警告出现的原因:The reason for the first warning is because you don't have any continuous states in your model, only discrete states, so Simulink changed the solver from ode45 (which is what you specified the solver to be, and which is a variable-step solver that handles continuous states) to the "VariableStepDiscrete" solver, which is also a variable-step s