View the step-by-step solution to:

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

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

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question