Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!post02.iad01!roadrunner.com!not-for-mail
From: John D'Errico <woodchips@rochester.rr.com>
Newsgroups: comp.soft-sys.matlab
Mail-Copies-To: nobody
Subject: Re: realy bad problem with MatLab
Organization: I'm not really very organized
References: <fvfecu$r51$1@fred.mathworks.com>
User-Agent: MT-NewsWatcher/3.5.2 (PPC Mac OS X)
Date: Fri, 02 May 2008 12:29:53 -0400
Message-ID: <woodchips-3518F4.12295302052008@news.rochester.rr.com>
Lines: 43
NNTP-Posting-Host: 66.67.170.241
X-Complaints-To: abuse@rr.com
Bytes: 1670
Xref: news.mathworks.com comp.soft-sys.matlab:466312



In article <fvfecu$r51$1@fred.mathworks.com>, "Maxim " <morozov@unicas.it> wrote:

> Can ANYBODY explain me why when I create the following 
> script:
> 
> a=1
> 
> in MATLAB R2007b, and call the script b.m and execute from 
> command window
> 
> >> b
> 
> I receive this error:
> 
> ??? Undefined function or variable 'b'. 
> 
> What does this idiocy mean???
> MM

The error message is a simple one. Matlab
does not know what b is, since it does not
find something called b.m, nor have you
defined a variable with the name b.

That it is idiocy is a subjective matter
of your opinion.

That it is your mistake is a fact. You
must put the script b in a valid place on
the matlab search path. Do not place it
in the matlab toolbox directories. Do not
place it in some random directory that
is not on the path.

John


-- 
The best material model of a cat is another, or preferably the same, cat.
A. Rosenblueth, Philosophy of Science, 1945

Those who can't laugh at themselves leave the job to others.
Anonymous