Thread Subject: realy bad problem with MatLab

Subject: realy bad problem with MatLab

From: Maxim

Date: 2 May, 2008 16:10:06

Message: 1 of 3

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

Subject: realy bad problem with MatLab

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 2 May, 2008 16:16:43

Message: 2 of 3

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???

That doesn't happen to me in R2007a; I don't have R2007b installed
to check with.

Where did you put b.m ? If you happened to put it in a toolbox
directory, then matlab will not find it until you issue the appropriate
'rehash' command varient.
--
  "There's no term to the work of a scientist." -- Walter Reisch

Subject: realy bad problem with MatLab

From: John D'Errico

Date: 2 May, 2008 16:29:53

Message: 3 of 3

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

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com