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);

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

- 25. The forecast probability of recession at 22% and the other business condition is an expansion. What is the forecast probability of an expansionary period?

- What is the IRR (internal rate of return) of the following project? Year Project A 0 -$1,000 1 700 2 700 3 200 Select one: a. 29.22% b. 33.60% c. 31.76%

- 28. The market rate is 5%. The face value of the bond is $1000, the coupon rate is 3% with annual compounding, and the bond matures in 10 years. What is the