adplus-dvertising
frame-decoration

Question

What does the following code generate?
p=ones(1,90);
t=(0:1:89);
plot(t,p);

a.

A graph of a unit step function

b.

A graph of a pulse function

c.

A graph of a triangular pulse function

d.

An impulse function

Posted under MATLAB

Answer: (b).A graph of a pulse function

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What does the following code generate?

Similar Questions

Discover Related MCQs

Q. The convolution of [1 2 1] and [1 2 1] will have the highest amplitude at t= _________

Q. Discrete time convolution is not possible in MATLAB.

Q. plot([0:1:8],[rectpulse(1,9)]’) and plot([0:1:8],ones(1,9)) will generate the same graph.

Q. If x(t-5)=0 for t<5 = A for t>=5, the signal is ___________

Q. The unit step response of an L.T.I. system is the convolution of a step signal and it’s ________

Q. What is the working of the conv2() command?

Q. The output of p=conv([ones(1,50)],[ones(1,100)]) and p=conv([ones(1,100)],[ones(1,50)]) are same.

Q. The signal get shifted by 1 units in time due to the following code: conv([ 1 2 3],[ 0 1 0 ]).

Q. For a causal L.T.I. system, the impulse response is 0 for _________

Q. The convolution of a discrete signal with itself is _________

Q. The convolution of a function with an impulse function delayed to an instant 3 in time results in ____________

Q. A continuous signal can be represented as the product of an impulse function and the signal itself.

Q. The R.O.C. of impulse function is _________

Q. The bilateral Z-transform ranges from ____________

Q. The R.O.C. of a unit step function is __________

Q. What is the relationship b/n laplace transform and z-transform of a function?

Q. If σ<0, the point in the z plane lies __ of the circle |z|=1.

Q. What is the T in the relation z=eˢᵀ?

Q. The Z-transform is only for discrete signals.

Q. The Z-transform doesn’t follow the linearity principle.