フィルターのクリア

how to give pulse width for sawtooth wave

3 ビュー (過去 30 日間)
nune pratyusha
nune pratyusha 2020 年 12 月 12 日
回答済み: Cris LaPierre 2020 年 12 月 12 日
sawtooth(2*pi*f*t)
in this command where i have to give pulse width

回答 (1 件)

Cris LaPierre
Cris LaPierre 2020 年 12 月 12 日
x = sawtooth(t) generates a sawtooth wave with period 2π for the elements of the time array t. sawtooth is similar to the sine function but creates a sawtooth wave with peaks of –1 and 1. The sawtooth wave is defined to be –1 at multiples of 2π and to increase linearly with time with a slope of 1/π at all other times.
To borrow an example from the same page, you can set the width by specifying how many cycles per second there are. First, 50 cycles ( ) per second, or width of .
T = 10*(1/50);
fs = 1000;
t = 0:1/fs:T-1/fs;
x = sawtooth(2*pi*50*t);
plot(t,x)
I can make it wider by reducing the multiplier. For example, for a width of .
figure
x = sawtooth(2*pi*10*t);
plot(t,x)

カテゴリ

Help Center および File ExchangeWaveform Generation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by