If the program demands evaluation of multiple, only decimal, values of the same function, what is the better way amongst the following?
A. Using anonymous functions or inline functions
B. Using str2func
C. Using private functions
D. Using any function
Answer: b
Explanation: The function str2cat() returns floating point or decimal expressions for integer values or fractional values. Anonymous functions and inline return decimal values for fractional values but not for integer values. Hence, str2cat is preferable.