import control
import matplotlib.pyplot as plt
import numpy as np
import scipy.signal as sig
from IPython.html.widgets import *

def draw_axis():
    plt.axhline(0,0,1)
    plt.axvline(0,0,1)
def draw_step_response_feedback(K,sys):
    # Defining feedback system
    C = control.tf(K,1)
    # Using feedback according to http://nl.mathworks.com/help/control/examples/using-feedback-to-close-feedback-loops.html
    controled_sys = control.feedback(C*sys,1)
    poles = control.pole(controled_sys)
    y,t = control.step(controled_sys)
    plt.plot(t,y)
    plt.xlabel('t')
    plt.ylabel('y(t)')
 

f0391fcbbab0b25613cc6b4cd28df51084aeb8de
<mask token>

<mask token>


def draw_step_response_feedback(K, sys):
    C = control.tf(K, 1)
    controled_sys = control.feedback(C * sys, 1)
    poles = control.pole(controled_sys)
    y, t = control.step(controled_sys)
    plt.plot(t, y)
    plt.xlabel('t')
    plt.ylabel('y(t)')

<mask token>


def draw_axis():
    plt.axhline(0, 0, 1)
    plt.axvline(0, 0, 1)


def draw_step_response_feedback(K, sys):
    C = control.tf(K, 1)
    controled_sys = control.feedback(C * sys, 1)
    poles = control.pole(controled_sys)
    y, t = control.step(controled_sys)
    plt.plot(t, y)
    plt.xlabel('t')
    plt.ylabel('y(t)')

import control
import matplotlib.pyplot as plt
import numpy as np
import scipy.signal as sig
from IPython.html.widgets import *


def draw_axis():
    plt.axhline(0, 0, 1)
    plt.axvline(0, 0, 1)


def draw_step_response_feedback(K, sys):
    C = control.tf(K, 1)
    controled_sys = control.feedback(C * sys, 1)
    poles = control.pole(controled_sys)
    y, t = control.step(controled_sys)
    plt.plot(t, y)
    plt.xlabel('t')
    plt.ylabel('y(t)')

import control
import matplotlib.pyplot as plt
import numpy as np
import scipy.signal as sig
from IPython.html.widgets import *

def draw_axis():
    plt.axhline(0,0,1)
    plt.axvline(0,0,1)
def draw_step_response_feedback(K,sys):
    # Defining feedback system
    C = control.tf(K,1)
    # Using feedback according to http://nl.mathworks.com/help/control/examples/using-feedback-to-close-feedback-loops.html
    controled_sys = control.feedback(C*sys,1)
    poles = control.pole(controled_sys)
    y,t = control.step(controled_sys)
    plt.plot(t,y)
    plt.xlabel('t')
    plt.ylabel('y(t)')
 
