octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #41464] freqz plot differs from matlab


From: anonymous
Subject: [Octave-bug-tracker] [bug #41464] freqz plot differs from matlab
Date: Wed, 05 Feb 2014 14:05:15 +0000
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0

URL:
  <http://savannah.gnu.org/bugs/?41464>

                 Summary: freqz plot differs from matlab
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Wed 05 Feb 2014 02:05:14 PM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.0
        Operating System: Any

    _______________________________________________________

Details:

freqz plot has two magnitude plots that zooms in on "interesting areas" in
octave while matlab has one plot with the full magnitude.

diff was made against 3.6.4 but the problem remains in latest version

--- C:\Program
Files\Octave-3.6.4\share\octave\3.6.4\m\signal\freqz_plot.m     2013-05-28
20:20:18.000000000 +0200
+++ freqz_plot.m        2013-08-13 09:51:33.093494000 +0200
@@ -40,23 +40,13 @@
   phase = unwrap (arg (h));
   maxmag = max (mag);
 
-  subplot (3, 1, 1);
+  subplot (2, 1, 1);
   plot (w, mag);
   grid ("on");
-  legend ("Pass band (dB)");
-  axis ([w(1), w(n), maxmag-3, maxmag], "labely");
+  legend ("Magnitude (dB)");
+  axis ("autoy", "labely");
 
-  subplot (3, 1, 2);
-  plot (w, mag);
-  grid ("on");
-  legend ("Stop band (dB)");
-  if (maxmag - min (mag) > 100)
-    axis ([w(1), w(n), maxmag-100, maxmag], "labely");
-  else
-    axis ("autoy", "labely");
-  endif
-
-  subplot (3, 1, 3);
+  subplot (2, 1, 2);
   plot (w, phase*360/(2*pi));
   grid ("on");
   legend ("Phase (degrees)");




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41464>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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