What is the output of the following code? [code]syms n;limit(n-1,n,nan,'left') [/code]

Answer: c
Explanation: Nan in MATLAB signifies Not a number. If we give Nan as a limiting value argument to our limit command, it will not give an error. Instead, it will return Nan as the result. The result is not helpful at all. The result would have been 0 if the limiting value was 1.
Output: Nan
 

Tìm kiếm

Back
Top