Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: undefined variable error message
Date: Tue, 23 Mar 2010 00:30:13 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 22
Message-ID: <ho922l$t30$1@fred.mathworks.com>
References: <ho91ju$mhg$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1269304213 29792 172.30.248.37 (23 Mar 2010 00:30:13 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 23 Mar 2010 00:30:13 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1886545
Xref: news.mathworks.com comp.soft-sys.matlab:619201

> when I run it, I get the message
> 
> ??? Input argument "Y" is undefined.
> 
> Error in ==> dumb at 3
> err=Y-X*beta;
> 
> any help?
> 
> thanks
> 
> why does this error message appear in general?  

Be more precise, how do you run it?

It appears whenewer you try to use a variable that doesn't exist yet in the workspace.

An example: 
clear
a = 1+c;

Oleg