Help save net neutrality! Learn more.
Close

Diff of /comp/comp_transferfunction.m [34f3ea] .. [931198]  Maximize  Restore

Switch to side-by-side view

--- a/comp/comp_transferfunction.m
+++ b/comp/comp_transferfunction.m
@@ -16,9 +16,10 @@
 else
     if ~isnumeric(g.H)
         g.H=g.H(L);
+        g.foff=g.foff(L);
     end;
-
-    H=circshift(postpad(g.H,L),g.foff(L)).*exp(-2*pi*1i*round(g.delay)*l);
+    
+    H=circshift(postpad(g.H,L),g.foff).*exp(-2*pi*1i*round(g.delay)*l);
     
     if g.realonly
         H=(H+involute(H))/2;