From: us on
"teki " <radiotek(a)gmail.com> wrote in message <i3s9jc$85u$1(a)fred.mathworks.com>...
> Hi Shan,
>
> I tried running the file from both the command window and directly from the m-file but neither works. The function and variable names are not conflicting.
>
> The same function works fine on my pc (with r2008a), but not on my laptop running matlab r2009a. Even a simple m-file to display a message won't run on my laptop now.
>
> On some other pages, someone suggested it might be a problem with the pathdef.m file, but I am not sure...I even added the path of the current directory before running the m-file, but to no avail!
>
> Sundeep

it looks like you might have a broken hd...

us
From: Walter Roberson on
us wrote:
> "teki " <radiotek(a)gmail.com> wrote in message
> <i3s9jc$85u$1(a)fred.mathworks.com>...
>> Hi Shan,
>>
>> I tried running the file from both the command window and directly
>> from the m-file but neither works. The function and variable names are
>> not conflicting.
>>
>> The same function works fine on my pc (with r2008a), but not on my
>> laptop running matlab r2009a. Even a simple m-file to display a
>> message won't run on my laptop now.
>>
>> On some other pages, someone suggested it might be a problem with the
>> pathdef.m file, but I am not sure...I even added the path of the
>> current directory before running the m-file, but to no avail!
>>
>> Sundeep
>
> it looks like you might have a broken hd...

Or a corrupted Matlab installation.

I'd probably start by removing the matlab preferences file.
From: Jan Simon on
Dear teki,

> 7. Error reads - "undefined function or variable".

Please copy the complete message. Sometimes there is a subtle difference between the exact message and the thing one means to have read (sorry, I have the strong impression, that this is not English anymore - I want to say:
While it is in general a good idea to think before posting, for error messages it is the other way around: post instead of thinking.).

Something strange happens, so a tiny detail may carry the important hint.

Jan
From: teki on
Thanks Us and Walter! My hd is fine but I suspect something's wrong with matlab as Walter suggests..

Jan, the exact error message when I try to run (e.g. 'filename.m') reads as:
??? Undefined function or variable 'filename'.

Thanks,
Sundeep



"Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <i3smvd$e62$1(a)fred.mathworks.com>...
> Dear teki,
>
> > 7. Error reads - "undefined function or variable".
>
> Please copy the complete message. Sometimes there is a subtle difference between the exact message and the thing one means to have read (sorry, I have the strong impression, that this is not English anymore - I want to say:
> While it is in general a good idea to think before posting, for error messages it is the other way around: post instead of thinking.).
>
> Something strange happens, so a tiny detail may carry the important hint.
>
> Jan
First  |  Prev  | 
Pages: 1 2
Prev: Time-Frequency Analysis
Next: error compiling mex file