MATLAB

1. Problem statement

a) Write the function discrete_pulse_train() to have the following function prototype:

function [x,n] = discrete_pulse_train(W,M,Np,D,N)

% [x,n] = discrete_pulse_train(W,M,Np,D,N)

% Generate a discrete-time pulse train

%================ Inputs =========================================

% W = pulse width in samples

% M = period in samples, M > W

% Np = Number of periods to create (if 0 full out to N samples)

% D = turn-on delay in samples of the first period

% N = total number of samples to create

%================ Outputs ========================================

% x = signal vector (a row vector)

% n = integer time axis corresponding to x

%////////////////////////////////////////////////////////////////

An example plot from this function obtained using the command line

>> [x,n] = discrete_pulse_train(5,18,4,13,200);

### Recently Asked Questions

- Please refer to the attachment to answer this question. This question was created from Arnold Chapter 1 Class Activity Questions-2.pdf.

- Explain the Content and the Incentive dimensions in psychology of learning.

- Is social media essential to today's daily activity, job searches, social interaction?List one positive and one negative effect. disccussion