0

フィールドを持つ1x1008構造体配列EEG.eventがあります

latency
duration
channel
bvtime
bvmknum
type
code
urevent

フィールド EEG.event.type = 'boundary' または 'R 1' のエントリがあるすべての行を削除したい

次のループを試しました:

for b = 1:length(EEG.event)  

     if strcmp(EEG.event(b).type, 'boundary')
        EEG.event(b) = [];
     elseif strcmp(EEG.event(b).type, 'R  1')
        EEG.event(b) = [];
     end

end

bある時点でカウント変数が の長さを超えるため、これはもちろん機能しませんEEG.event

特定の行を削除する方法を知っている人はいますか?

4

3 に答える 3