[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to Suppress Warning Messages
From: |
Juan Pablo Carbajal |
Subject: |
Re: How to Suppress Warning Messages |
Date: |
Tue, 16 Jun 2015 08:13:15 +0200 |
On Tue, Jun 16, 2015 at 4:40 AM, Thomas D. Dean <address@hidden> wrote:
> I get warning messages from gnuplot. Any way to suppress them?
>
> I have tried several versions of warning within the function.
>
> In a function, I do:
>
> octave:1051> a0 = 1e7;
> octave:1052> p1 = 55;
> octave:1053> p2 = 1e6;
> octave:1054> z1 = 4.3e6;
> octave:1055> s = tf('s');
> octave:1056> TFopen = a0 * (1+s/z1) / (1+s/p1) / (1+s/p2);
> octave:1057> Gfb = 10;
> octave:1058> b = 1/Gfb;
> octave:1059> R1 = 10e3;
> octave:1060> R2 = R1 * (1/b - 1)
> R2 = 90000
> octave:1061> TFstage1 = feedback(TFopen,b);
> octave:1062> L = TFopen * b;
> octave:1063> S = feedback(1, L)
>
> Transfer function 'S' from input 'u1' to output ...
>
> 1.818e-08 s^2 + 0.01818 s + 1
> y1: --------------------------------
> 1.818e-08 s^2 + 0.2507 s + 1e+06
>
> Continuous-time model.
> octave:1064> bodemag(TFstage1,'b',S,'g');
> octave:1065> close
> octave:1066> margin(L);
> line 0: warning: Skipping data file with no valid points
> line 0: warning: Skipping data file with no valid points
> line 0: warning: Skipping data file with no valid points
>
> Tom Dean
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-octave
check if MSGID in
[MSG, MSGID] = lastwarn ()
has anything on it. If it has an Id you can switch this warning off using
warning("off",MSGID);
Check the help of the function warning to make this only local.
Howevr the warning is pointing at the fact that your data might not be
correctly fomred for what you are attempting to do. Re check your "L"
data and see if you can fix it.