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

- Mercury Athletic case study questions DUE: Sunday, September 23 at Midnight The easiest way to solve the case is to use a spreadsheet to calculate free cash

- Would competition among health insurance markets work? (Consider mergers and geographic limitations) What economic regulations do you think should be

- Cacualte F net = _______ at t=0.1 s (Be sure to include units for your force value). F net = _______ at t=0.25 s F net = _______ at t=0.5 s R =