From: Jared on
"Steven Lord" <slord(a)mathworks.com> wrote in message <gu1co4$oc0$1(a)fred.mathworks.com>...
>
> "Brendan Tracey" <hockeybdt(a)hotmail.com> wrote in message
> news:gu0qrm$mga$1(a)fred.mathworks.com...
> > Thanks in advance for your help
> >
> > I am unable to save, print or open from the figure GUI. From the error
> > messages, it looks like something is going wrong with a pointer to the
> > figure. I don't know what caused the error to start happening, and I'm not
> > really sure how to fix it. I am running Matlab 7.4.0.
> >
> > Thank you very much
> >
> > Here are the exact errors.
> >
> > Save :
> > Error: File: ismember.m Line: 1 Column: 3
> > Expression or statement is incomplete or incorrect.
>
> Take a look at line 1 of the ismember.m file. Does it look correct -- is it
> a normal function declaration line?
>
> Are you using an ismember.m file written by someone else and if so, was it
> written with a valid function declaration line? [You can check which copy
> of ISMEMBER you're using with "which -all ismember".]
>
> Did you for some reason add the toolbox/matlab/ops/ja directory to the path?
> If so, remove that directory from your path.
>
> Did you accidentally edit the ismember.m file and put a line break or
> unexpected character on column 3 of line 1 of the file?
>
> --
> Steve Lord
> slord(a)mathworks.com
>

Was this ever resolved?
I have a different issue, I am using the Builder for Java.
I can build a m-file and it produces a jar file and I can call it from my Java program.
The figure displays correctly but some of the menu options don't work. I get errors such as,

??? Attempt to reference field of non-structure array.
??? Error while evaluating uimenu Callback

Any thoughts?
From: Jared on
"Steven Lord" <slord(a)mathworks.com> wrote in message <gu1co4$oc0$1(a)fred.mathworks.com>...
>
> "Brendan Tracey" <hockeybdt(a)hotmail.com> wrote in message
> news:gu0qrm$mga$1(a)fred.mathworks.com...
> > Thanks in advance for your help
> >
> > I am unable to save, print or open from the figure GUI. From the error
> > messages, it looks like something is going wrong with a pointer to the
> > figure. I don't know what caused the error to start happening, and I'm not
> > really sure how to fix it. I am running Matlab 7.4.0.
> >
> > Thank you very much
> >
> > Here are the exact errors.
> >
> > Save :
> > Error: File: ismember.m Line: 1 Column: 3
> > Expression or statement is incomplete or incorrect.
>
> Take a look at line 1 of the ismember.m file. Does it look correct -- is it
> a normal function declaration line?
>
> Are you using an ismember.m file written by someone else and if so, was it
> written with a valid function declaration line? [You can check which copy
> of ISMEMBER you're using with "which -all ismember".]
>
> Did you for some reason add the toolbox/matlab/ops/ja directory to the path?
> If so, remove that directory from your path.
>
> Did you accidentally edit the ismember.m file and put a line break or
> unexpected character on column 3 of line 1 of the file?
>
> --
> Steve Lord
> slord(a)mathworks.com
>

Was this ever resolved?
I have a different issue, I am using the Builder for Java.
I can build a m-file and it produces a jar file and I can call it from my Java program.
The figure displays correctly but some of the menu options don't work. I get errors such as,

??? Attempt to reference field of non-structure array.
??? Error while evaluating uimenu Callback

Any thoughts?
From: Steven Lord on

"Jared " <jared.olbricht(a)lmco.com> wrote in message
news:hndivp$9bh$1(a)fred.mathworks.com...

*snip*

> Was this ever resolved? I have a different issue, I am using the Builder
> for Java.

When you post a new issue, please use a new thread. They're cheap and easy
to create.

> I can build a m-file and it produces a jar file and I can call it from my
> Java program.
> The figure displays correctly but some of the menu options don't work. I
> get errors such as,
>
> ??? Attempt to reference field of non-structure array.
> ??? Error while evaluating uimenu Callback
>
> Any thoughts?

My first suspicion, particularly if the GUI works inside MATLAB, is that
you're missing some callbacks. Take a look at the "Fixing Callback
Problems: Missing Functions" and "Finding Missing Functions in an MATLAB
File" sections of the MATLAB Compiler documentation's Troubleshooting
chapter:

http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/br2cqa0-2.html#br2cqa0-5

Also make sure you're not trying to use a function that's not supported for
use with MATLAB Compiler (which MATLAB Builder for Java uses.) I believe
that information will be included in the log files created when you compiled
your application.

If that doesn't work, I think you should probably contact Technical Support,
as it would be difficult to troubleshoot this issue further without seeing
your code and how it was compiled, and that's a bit much to include in a
newsgroup posting.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ