Main Content

removeMembers

ラベル付き信号セットからのメンバーの削除

説明

removeMembers(lss,midxvect) は、ラベル付き信号セット lss から midxvect で指定されたメンバーを削除します。

すべて折りたたむ

クジラの歌の録音を含むラベル付き信号セットを読み込みます。

load whales
lss
lss = 
  labeledSignalSet with properties:

             Source: {2x1 cell}
         NumMembers: 2
    TimeInformation: "sampleRate"
         SampleRate: 4000
             Labels: [2x3 table]
        Description: "Characterize wave song regions"

 Use labelDefinitionsHierarchy to see a list of labels and sublabels.
 Use setLabelValue to add data to the set.

セットの 2 番目のメンバーを削除します。

removeMembers(lss,2)
lss
lss = 
  labeledSignalSet with properties:

             Source: {[79572x1 double]}
         NumMembers: 1
    TimeInformation: "sampleRate"
         SampleRate: 4000
             Labels: [1x3 table]
        Description: "Characterize wave song regions"

 Use labelDefinitionsHierarchy to see a list of labels and sublabels.
 Use setLabelValue to add data to the set.

入力引数

すべて折りたたむ

ラベル付き信号セット。labeledSignalSet オブジェクトとして指定します。

例: labeledSignalSet({randn(100,1) randn(10,1)},signalLabelDefinition('female')) は、属性 'female' を含むランダム信号の 2 つのメンバーのセットを指定します。

サブセット メンバーの行番号。正の整数のベクトルとして指定します。midxvect の各要素は、labeledSignalSet オブジェクト lssLabelsテーブルに表示されるメンバーの行番号を指定します。

例: [2 3 5 7 11 13 17] は、素数でインデックス付けされた信号のサブセットを選択します。

バージョン履歴

R2018b で導入