The goal is to create a function that will return a single "NaN" without using the nan function. I am interested to see how many different ways this can be done, so be creative and submit more than one solution if you have lots of ideas!
Nice test suite
I really really want to know that how many methods to gain NaN up to now.
Swap the input arguments
Find the sum of the elements in the "second" diagonal
Check if number exists in vector
What is Sum Of all elements of Matrix
Given the name from the legend, return the handle
Big numbers, least significant digits
Big numbers, repeated least significant digits
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office