Skip to content

Commit da874f7

Browse files
committed
Fix python3 bug in freqresp for discrete-time systems
1 parent 5f36a55 commit da874f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

control/xferfcn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ def freqresp(self, omega):
611611
omega.sort()
612612
if isdtime(self, strict=True):
613613
dt = timebase(self)
614-
slist = map(lambda w: exp(1.j * w * dt), omega)
614+
slist = np.array([exp(1.j * w * dt) for w in omega])
615615
if (max(omega) * dt > pi):
616616
warn("evalfr: frequency evaluation above Nyquist frequency")
617617
else:

0 commit comments

Comments
 (0)