Cody

Problem 1406. Generate a NaN...on purpose

Created by Michael C. in Community

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!

Solution Stats

62.69% Correct | 37.31% Incorrect
Last solution submitted on Feb 08, 2019

Problem Comments

Solution Comments

Recent Solvers198

Suggested Problems

More from this Author4

Tags

nan
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!