Matlab step方法

在Matlab中我们经常能看到Java的影子,即面向对象编程(Object Oriented Programming,OOP)。

以Turbo编码为例:

hTEnc = comm.TurboEncoder('TrellisStructure',poly2trellis(4, [13 15],13),'InterleaverIndices',intrlvrIndices);

上面的语句生成了一个Turbo编码器对象(Object),该对象包含了两个“属性”,需添加单引号,其后跟随的即为该属性的值。

即属性TrellisStructure的值为poly2trellis(4, [13 15],13);属性InterleaverIndices的值为intrlvrIndices。

要执行(使用)该对象时,调用step方法即可(The behavior of step is specific to each object in the toolbox)。

posted on 2019-08-26 16:38  阿长长  阅读(1131)  评论(0编辑  收藏  举报

导航