shortensigroi
説明
は、roilimsout
= shortensigroi(roilims
,sl
,sr
)roilims
で指定された信号の関心領域を左から sl
サンプル、右から sr
サンプル短縮します。関数は長さ sl
+ sr
以下のすべての領域を削除します。
例
関心領域の短縮
信号の関心領域を表現する 2 列の整数の行列を作成します。関心領域を左から 3 サンプル、右から 2 サンプル短縮します。shortensigroi
は、その長さを超えて関心領域を短縮することはしません。
rois = [1 10; 17 26; 24 32; 38 40]; xrois = shortensigroi(rois,3,2)
xrois = 3×2
4 8
20 24
27 30
入力引数
roilims
— 関心領域の範囲
2 列の正の整数の行列
関心領域の範囲。2 列の正の整数の行列として指定します。roilims
の i 番目の行には、信号の i 番目の関心領域の開始サンプルと終了サンプルに対応する非減少インデックスが格納されます。
例: [5 8; 12 20; 18 25]
は、3 つの領域をもつ 2 列の関心領域行列を指定します。
データ型: single
| double
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
sl
— 左から短縮するサンプルの数
非負の整数
左から短縮するサンプルの数。非負の整数として指定します。
データ型: single
| double
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
sr
— 右から短縮するサンプルの数
非負の整数
右から短縮するサンプルの数。非負の整数として指定します。
データ型: single
| double
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
出力引数
拡張機能
C/C++ コード生成
MATLAB® Coder™ を使用して C および C++ コードを生成します。
GPU 配列
Parallel Computing Toolbox™ を使用してグラフィックス処理装置 (GPU) 上で実行することにより、コードを高速化します。
この関数は、GPU 配列を完全にサポートします。詳細については、GPU での MATLAB 関数の実行 (Parallel Computing Toolbox)を参照してください。
バージョン履歴
R2020b で導入
参考
オブジェクト
関数
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)