What is the working of the nargout command?

Giao Linh

New member
What is the working of the nargout command?
A. Gets assigned to a number which is equal to the number of outputs-1 sought from a subfunction
B. Gets assigned to a number which is equal to the number of outputs-1 sought from a function
C. Gets assigned to a number which is equal to the number of outputs sought from a function
D. Gets assigned to a number which is equal to the number of outputs+1 sought from a function
 
Answer: c
Explanation: The nargout command gets assigned to a number which is equal to the number of outputs sought from a function. It will control the nature of outputs produced by the function where it is present.
 

Tìm kiếm

Back
Top