MATLAB Answers

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

76 views (last 30 days)
Whenever we type why in the MATLAB command window the answer it shows is entirely different. "Why" is it so?

  0 Comments

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 29 Jun 2013
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

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags