From: malathi d on 28 Apr 2010 14:10 can anyone say how to display an error message by terminating the program if an error occurs without closing matlab ???
From: Walter Roberson on 28 Apr 2010 14:16 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 28 Apr 2010 14:30 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 29 Apr 2010 00:32 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.
|
Pages: 1 Prev: Are these supposed to be REAL images? Next: dct2 important |