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

Đinh Yến

New member
plot([0:1:8],[rectpulse(1,9)]’) and plot([0:1:8],ones(1,9)) will generate the same graph.
A. True
B. False
 
Answer: a
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.
 

Tìm kiếm

Back
Top