matlab - Problems with step size Simulink
问题描述
What I want my model to do is to execute the entire model before moving on to the next step.
The idea of the model is to compare two inputs. If there is a greater difference than 500 then the output of the function should be 1000, else 0. I then run the output through an integrator but the value integrated is never 1000 at that time step which is what I want it to do.
I've played around with difference solver options but none has worked thus far. Fixed step doesn't solve it.
Graph:
Model:
The red value should jump from 0 to 1000 when there's a greater difference than 500 between the two values. Thanks!
解决方案
Fixed step with euler as solver fixed it!
推荐阅读
- azure - 如何从推送到回购中自动触发构建?
- excel - 在数据透视表上创建范围的动态选择,用于创建图表
- python - 如何从具有条件的另一列中提取值?
- bash - 通过 cURL 将大文件作为 JSON 中的数据发送
- android - 使用grok提取android日志数据
- laravel - 未使用自定义表单请求方法调用控制器方法
- swift - 快速将 Int 转换为 UInt8 数组
- sql-server - D365 的 SSRS 报表开发 - 未安装 Dynamics 365 报表创作扩展
- regex - 通过正则表达式获取第二场比赛
- php - 如何对包含laravel中的集合的数组进行排序?