1.

plot([0:1:8],[rectpulse(1,9)]’) and plot([0:1:8],ones(1,9)) will generate the same graph.(a) True(b) FalseI have been asked this question in quiz.My question is taken from Operations on Signals topic in section Digital Signal Processing of MATLAB

Answer»

The correct choice is (a) True

For explanation: ‘rectpulse(1,9)’ GENERATES a column vector of 9 1’s. Since we have transposed it, the resultant is a ROW vector of 9 1S. ‘ones(1,9)’ also generates 9 1’s as a row vector. Thus, the above codes will RESULT in the same graph.



Discussion

No Comment Found

Related InterviewSolutions