このページの翻訳は最新ではありません。ここをクリックして、英語の最新版を参照してください。
tripuls
サンプリングされた非周期的な三角波
説明
例
三角パルスの生成および変位
10 kHz のサンプルレートと 40 ms の幅をもつ、200 ms の対称な三角パルスを生成します。
fs = 10e3; t = -0.1:1/fs:0.1; w = 40e-3; x = tripuls(t,w);
同じパルスのバリエーションを 2 つ生成します。
一方は、45 ms 過去にずらして左側に対し 45% の非対称とします。
tpast = -45e-3; spast = -0.45; xpast = tripuls(t-tpast,w,spast);
一方は、60 ms 未来にずらして幅を半分にし、右側に対し完全に非対称とします。
tfutr = 60e-3; sfutr = 1; xfutr = tripuls(t-tfutr,w/2,sfutr);
元のパルスとこの 2 つを同じ座標軸上にプロットします。
plot(t,x,t,xpast,t,xfutr) ylim([-0.2 1.2])
入力引数
t
— サンプル時間
ベクトル
単位三角パルスのサンプル時間。ベクトルとして指定します。
データ型: single
| double
w
— 三角形の幅
1
(既定値) | 正の数値
三角形の幅。正の数値として指定します。
データ型: single
| double
s
— 三角形のせん断
0
(既定値) | 実数
三角形のせん断。–1 ≤ s
≤ 1 となるように実数として指定します。s
が 0 のとき、この関数は対称な三角パルスを生成します。
データ型: single
| double
出力引数
y
— 三角パルス
ベクトル
単位振幅の三角パルス。ベクトルとして返されます。
拡張機能
C/C++ コード生成
MATLAB® Coder™ を使用して C および C++ コードを生成します。
バージョン履歴
R2006a より前に導入
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)