What is the output of the following code? [code]>>p=[ 1 0 1]; >> q=[ -1 1]; >> step(p,q);[/code]

Đức Lưu

New member
What is the output of the following code?
Code:
>>p=[ 1 0 1];
>> q=[  -1 1];
>> step(p,q);
A. An unstable step response
B. A stable step response
C. Error
D. A marginally unstable response
 
Answer: c
Explanation: We observe that the vector containing zeros, in the step command, reveals that the given system has more zeros than poles. This system output goes to infinity for increasing frequencies and hence MATLAB cannot plot the step response. Thus it’ll give an error.
 

Tìm kiếm

Back
Top