|
"S " <ppk664@my.utsa.edu> wrote in message
news:hkipi0$r7r$1@fred.mathworks.com...
> Hi,
>
> I have a matlab function that uses imagesc() function. I use the MATLAB
> builder JA to create my package that I can call in my java program. When I
> run the java program with the imported package I see the window pop up and
> disappears right away.
>
> I tried the plot() function works fine, pops up the window that displays
> the plot. Anyone has any idea why this is happening?
Does your application finish immediately after bringing up the image? If
so, the application must destroy the window it opened (otherwise it would be
a resource leak) -- to prevent this, I believe you can use WAITFOR in your
code to force the application to wait to finish until the figure is closed.
--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
|