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

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

## This question was asked on Mar 17, 2010.

### Recently Asked Questions

- Can you please help me to answer all the questions in the pics? And please write the answers as detailed as possible, and in a easy-to-understand way.

- Summarize the case and identify the dilemma facing Starbucks.

- Can you please help me to answer all the questions in the pics? And please write the answers as detailed as possible, and in a easy-to-understand way.