随笔分类 - Matlab-simulink
摘要:在Simulink模型中Configuration Parameters里的Solver页设置仿真时间、步长、精度和解法器。 一、仿真时间:注意这里的时间概念与真实的时间并不一样,只是计算机仿真中对时间的一种表示,比如10秒的仿真时间,如果采样步长定为0.1,则需要执行100步,若把步长减小,则采样
阅读全文
摘要:1. 在scope中添加图例 (1)首先打开配置属性(configuration properties),在display下面的show legend前面打钩 这样就允许图例显示出来 (2)对scope的接入线进行编辑,双击就可以了 之后就变成下面的形式: (3)运行仿真之后就可以发现scope里面
阅读全文
摘要:function [sys,x0,str,ts,simStateCompliance] = int_hyo(t,x,u,flag) switch flag, case 0, [sys,x0,str,ts,simStateCompliance]=mdlInitializeSizes; case 1,
阅读全文
摘要:Simulink求解器 Simulink仿真过程 Simulink 模型的执行分几个阶段进行。首先进行的是初始化阶段,在此阶段,Simulink 将库块合并到模型中来,确定传送宽度、数据类型和采样时间,计算块参数,确定块的执行顺序,以及分配内存。然后,Simulink 进入到“仿真循环”,每次循环可
阅读全文
摘要:逻辑模块 1、小于等于系列模块 Applies the selected relational operator to the inputs and outputs the result. The top (or left) input corresponds to the first operan
阅读全文