help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

warning_ids


From: John W. Eaton
Subject: warning_ids
Date: Mon, 17 Sep 2007 16:38:53 -0400

On 17-Sep-2007, Peter Cloetens wrote:

| Is there a way to get rid of the following type of warning:
| 
| PS1 is no longer a built-in variable; please read the NEWS file or type 
| `news' for details

Stop assigning values to PS1?

| I went through the warning_ids without much success.
| The only solution that worked, was:
| warning("off")
| but then all warnings are gone.
| Or with other words, is there somewhere a full list of warning identifiers?

I don't see a way to have a comprehensive list of all possible warning
identifiers.  The general method for finding out the warning
identifier associated with the most recent warning is

  PS1 = 1;  %% generate the warning message
  [msg, id] = lastwarn ()

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]