From: malathi d on
can anyone say how to display an error message by terminating the program if an error occurs without closing matlab ???
From: Walter Roberson on
malathi d wrote:
> can anyone say how to display an error message by terminating the
> program if an error occurs without closing matlab ???

I don't think I understand the question, but _maybe_ you wish to look at the
try/catch construct, and error().
From: malathi d on
Walter Roberson <roberson(a)hushmail.com> wrote in message <hr9u2l$c7p$1(a)canopus.cc.umanitoba.ca>...
> malathi d wrote:
> > can anyone say how to display an error message by terminating the
> > program if an error occurs without closing matlab ???
>
> I don't think I understand the question, but _maybe_ you wish to look at the
> try/catch construct, and error().

thanks Mr.Walter . i actually need to display an error dialog box when an error occurs say for example when resource shortage occurs in resource allocation. we tried with errordlg .upon error the dialog is being displayed but the program doesnot terminate.this is our actual problem
From: venkat on
On Apr 28, 11:30 pm, "malathi d" <malathydu...(a)gmail.com> wrote:
> Walter Roberson <rober...(a)hushmail.com> wrote in message <hr9u2l$c7...(a)canopus.cc.umanitoba.ca>...
> > malathi d wrote:
> > > can anyone say how to display an error message by terminating the
> > > program if an error occurs without closing matlab ???
>
> > I don't think I understand the question, but _maybe_ you wish to look at the
> > try/catch construct, and error().
>
> thanks Mr.Walter . i actually need to display an error dialog box when an error occurs say for example when resource shortage occurs in resource allocation. we tried with errordlg .upon error the dialog is being displayed but the program doesnot terminate.this is our actual problem

You know that the error has occured. So you can 'return' from your
program with an error code/message.