matlab中selector的使用

2021-10-11 02:50:38 字數 770 閱讀 7217

1、selector簡介

用於處理多個訊號的輸入輸出順序與選擇

2、用途

1)多選一;

2)多選多;

3)調整輸入訊號順序;

3、使用方法

如圖例子:

加入三個常量分別為1,2,3

使用mux集總三路訊號;

輸入selector,設定selector

number of input dimensions:1(輸入的向量維度為1)

index mode : one-based 訊號序號從1開始

index option:index vector (dialog)

index [1 3 2] 調換2和3的順序 ,如果只要乙個訊號如第乙個,可以設定index:1

input port size :3 輸入訊號的個數

多個訊號使用demux分解,接入到多輸入的scope,觀察訊號確實改變順序

如果是一路訊號,就不需要demux直接接scope觀察

補充:多維向量處理,與一維類似

1、選擇訊號:

2、改變訊號順序

Swift Swift中Selector的變化

swift中selector變化 2.2 之前,使用字串作為方法名稱 無引數btn.addtarget self,action selector buttonpress forcontrolevents touchupinside 有引數 btn.addtarget self,action sele...

Swift Swift中Selector的變化

swift中selector變化 2.2 之前,使用字串作為方法名稱 無引數btn.addtarget self,action selector buttonpress forcontrolevents touchupinside 有引數 btn.addtarget self,action sele...

swift 中的 Selector 型別

cocoa touch framework 中有很多地方需要用到selector型別,例如 uibutton addtarget action forcontrolevents nstimer scheduledtimerwithtimeinterval target selector userin...