t = linspace(0,90/180*pi,100)
y = sin(t)
x = cos(t)

ts = linspace(0, 2*pi,100)
ys = 0.001*sin(ts)
xs = 0.001*cos(ts)

line = linspace(0, 1.03  ,100)
line1 = linspace(0, 0.96   ,100)
line_vule = linspace(0, 1.1   ,100)


t1 = linspace(10/180*pi, 30/180*pi, 100)
y1 = sin(t1)
x1 = cos(t1)

t2 = linspace(30/180*pi, 50/180*pi, 100)
y2 = sin(t2)
x2 = cos(t2)

t3 = linspace(-10/180*pi, 10/180*pi, 100)
y3 = sin(t3)
x3 = cos(t3)

z = 3*line;
init_val = 0.22*line_vule;
vule1 = 0.05*line;
vule2 = 0.39*line1;
p = plot(x, y, y1, x1, y2, x2, 'r', y3, x3, 'y', init_val, line_vule, '--k', vule1, line, vule2, line1, ys, xs, 'k')
grid on 
text(0.02, 1.05,'  bit_{n-1}','FontSize',12)
text(0.25, 1,'  bit_{n}','FontSize',12)
text(0.6, 0.81,'  bit_{n+1}','FontSize',12)
text(0.22, 1.12,'  S30 ','FontSize',12)
text(0.17, 0.5,'  \leftarrow Horní rozmezí vule ','FontSize',12)
text(0.00, 0.095,'\leftarrow Dolní rozmezí vule ','FontSize',12)
xlim([-0.1 1.25])
ylim([-0.1 1.25])
p(2).LineWidth = 2
p(3).LineWidth = 2
p(4).LineWidth = 2
p(5).LineWidth = 1.5
p(8).LineWidth = 3
p(2).Color = [0.1137 0.4510 0.6667]
p(3).Color = [0.7686 0.2667 0.2549]
p(4).Color = [0.4078 0.8549 0.2784]
p(6).Color = [0.9333 0.1804 0.1843]
p(7).Color = [0.9333 0.1804 0.1843]

