From: Scott Perala on
Hello.

First, I am running R2009 on Windows 7. I have a strange issue. I recieve the error:
"??? Attempt to reference field of non-structure array."
whenever I execute an m-file. If I execute the code in a Cell, there is no error, but if I execute an m-file, I receive the error when it completes. This occurs also with the following "code":
x = 6

Anyone else see this before?

Thanks!

Scott
From: Ashish Uthama on
On Mon, 02 Nov 2009 06:17:01 -0500, Scott Perala <bucky_vt(a)yahoo.com>
wrote:

> Hello.
>
> First, I am running R2009 on Windows 7. I have a strange issue. I
> recieve the error:
> "??? Attempt to reference field of non-structure array."
> whenever I execute an m-file. If I execute the code in a Cell, there is
> no error, but if I execute an m-file, I receive the error when it
> completes. This occurs also with the following "code":
> x = 6
>
> Anyone else see this before?
>
> Thanks!
>
> Scott

Are you calling any of your MATLAB function/scripts with its subscript?

I have seen this happen when one uses:
> myMATLABfile.m
instead of
> myMATLABfile

to call their function/scripts.
From: Scott Perala on
Ashish,

Thanks! That is exactly what I was doing. By dropping the ".m", the error doesn't appear.

Thanks alot, although I noticed it doesn't affect the script, it was becoming really annoying!

Cheers,
Scott