MATLAB Answers

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

4 views (last 30 days)
Travis Heckler
Travis Heckler on 2 Dec 2019
Edited: Sean de Wolski on 2 Dec 2019
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

  0 Comments

Sign in to comment.

Answers (1)

Sean de Wolski
Sean de Wolski on 2 Dec 2019
Edited: Sean de Wolski on 2 Dec 2019
This ought to do part 1:
pulse = rem(ones(1,14).*(1:14),13)+zeros(1,14)>2

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags

Products


Release

R2019b