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
- lease see the attached image for a simple line regression
- How do i create a Finite State Machine that can detect a specific six digit binary sequence in a continuous serial binary input stream
- Go to the Illinois State Bar Association Websites and read the article titled. U.S. Supreme Court Says no to Cell-Phone Searches Incident to Arrest located at