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

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

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

제품

릴리스

R2019b

태그

질문:

2019년 12월 2일

편집:

2019년 12월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by