What is the output of the following code? [code]>> ztrans('n',s)[/code]

Ngô Quốc Huy

New member
What is the output of the following code?
Code:
>> ztrans('n',s)
A. s/(s-1)$^{2}$
B. ns/(s-1)$^{2}$
C. Error
D. s/(s+1)$^{2}$
 
Answer: c
Explanation: We have not initialized s as symbolic, MATLAB won’t be able to realize the variable s which has been given as an input to the ztrans command. Thus, this leads to an error. If s was defined symbolic, the answer would’ve been s/(s-1)$^{2}$.
 

Tìm kiếm

Back
Top