金宝app仿真软件。SampleTime类
包:金宝app
超类:
对象包含样本时间信息
描述
的SampleTime
类代表样本时间信息与个体样本的时间有关。
使用的方法金宝appSimulink.Block.getSampleTimes
和金宝appSimulink.BlockDiagram.getSampleTimes
检索的值SampleTime
属性为一块和一块图,分别。
属性
|
双打的双元素数组包含时间和偏移量的样本 |
|
1 xn字符数组描述样本时间类型 |
|
1 x3的双打数组包含红、绿、蓝(RGB)值的样本颜色 |
|
1 xn字符数组,代表一个特定的注释样本时间(例如,D1) |
|
异步和变量样本, |
|
如果样品时间是一个异步联盟或者样品时间是混合和组件样品时间可用,那么数组ComponentSampleTimes包含仿真软件。金宝appSampleTime对象。 |
复制语义
价值。学习如何价值类影响复制操作,明白了复制对象在MATLAB (MATLAB)®编程基础知识文档。
例子
检索的vdp的样品时间信息模型。
ts = 金宝appSimulink.BlockDiagram.getSampleTimes (vdp)
金宝app仿真软件的回报:
ts = 1 x2金宝app仿真软件。SampleTime包:Simulink Properties: Value Description ColorRGBValue Annotation OwnerBlock ComponentSampleTimes Methods
检查属性的值:
ts (1), (2) ans =仿真金宝app软件。SampleTime包:Simulink Properties: Value: [0 0] Description: 'Continuous' ColorRGBValue: [0 0 0] Annotation: 'Cont' OwnerBlock: [] ComponentSampleTimes: {} Methods ans = Simulink.SampleTime Package: Simulink Properties: Value: [Inf 0] Description: 'Constant' ColorRGBValue: [1 0.2600 0.8200] Annotation: 'Inf' OwnerBlock: [] ComponentSampleTimes: {} Methods