What happens when you type "why" in the command window?

Whenever we type why in the MATLAB command window the answer it shows is entirely different. "Why" is it so?

 Accepted Answer

You can read the source for why() . It generates a response randomly. why() was included purely for fun, and is not intended to analyze any current error condition or give real explanations for warning messages.
To read the source, give the command
type why

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!