Q Quốc Ân New member Sep 19, 2021 #1 What will be the output of the following code? Code: all([Nan]) A. 1 B. 0 C. Error D. Nan
A Alvin Le Member Sep 19, 2021 #2 Answer: c Explanation: Nan is not defined in MATLAB. It should have been ‘NaN’ or ‘nan’. If it was either of them, the result would’ve been 1 since NaN is not equal to 0. Upvote 0 Downvote
Answer: c Explanation: Nan is not defined in MATLAB. It should have been ‘NaN’ or ‘nan’. If it was either of them, the result would’ve been 1 since NaN is not equal to 0.