How do i create a prototype pulse using zeros and ones?

3 ビュー (過去 30 日間)
Travis Heckler
Travis Heckler 2019 年 12 月 2 日
編集済み: Sean de Wolski 2019 年 12 月 2 日
1. Use the commands “zeros” and “ones” to create a prototype pulse in a row vector called “pulse” (without the quotes) that has 2 zeros followed by 10 ones followed by 2 zeros. 2. Make a stem plot of the prototype pulse versus a DT time index n starting at n = 0

回答 (1 件)

Sean de Wolski
Sean de Wolski 2019 年 12 月 2 日
編集済み: Sean de Wolski 2019 年 12 月 2 日
This ought to do part 1:
pulse = rem(ones(1,14).*(1:14),13)+zeros(1,14)>2

カテゴリ

Help Center および File ExchangePulse and Transition Metrics についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by