begin{document}
  \newcommand{\step}{.5}
  \begin{tikzpicture}[>=latex]
    \draw [->] (0,0) -- ++(8,0) node [right] {$t$};
    \draw [->] (0,-1.5) -- ++(0,3) node [midway, left] {$0$};
    \draw [name path=zigzag] 
      \foreach \x in {0,\step,...,6} {
        (\x,0) -- ++(\step/4,-1.5) -- ++(\step/2,3) -- ++(\step/4,-1.5)
      };

%    \foreach \p\l\c in {0/1/red, -0.67*pi/2/blue, 0.67*pi/3/green} 
    
    %RED
      \draw [red,smooth, domain=0:2*pi+.5, name path global=wave-1] plot ({\x},{sin((\x+0) r)}) node [below right, font=\scriptsize] {$sig_1$};
      \draw [red,name intersections={of={wave-1} and zigzag, total=\n}]
        \foreach \i [remember=\i as \lasti (initially 2)] in {1,...,\n} {
          \ifodd\i {}
          \else
            (intersection-\lasti) -- (intersection-\i |- intersection-\lasti)
            (intersection-\lasti |- 0,-2*1) rectangle (intersection-\i |- 0,-3)  
          \fi
        };
      \draw [->] (0,-3) -- ++(8,0) node [right, font=\scriptsize] {$sig_1$};
      \draw [->] (0,-3) node [left] {0} -- ++(0,1.2) node [above] {$v_{1 N}$};      
    
    
    %Blue
     \draw [blue,smooth, domain=0:2*pi+.5, name path global=wave-2] plot ({\x},{sin((\x+-0.67*pi) r)}) node [right, font=\scriptsize] {$sig_2$
begin{document } 
   \newcommand{\step}{.5 } 
   \begin{tikzpicture}[>=latex ] 
     \draw [ - > ] (0,0) -- + + (8,0) node [ right ] { $ t$ }; 
     \draw [ - > ] (0,-1.5) -- + + (0,3) node [ midway, left ] { $ 0 $ }; 
     \draw [ name path = zigzag ] 
       \foreach \x in { 0,\step,... ,6 } { 
         (\x,0) -- + + (\step/4,-1.5) -- + + (\step/2,3) -- + + (\step/4,-1.5) 
       }; 

%     \foreach \p\l\c in { 0/1 / red, -0.67*pi/2 / aristocratic, 0.67*pi/3 / fleeceable } 
    
    % RED 
       \draw [ red, smooth, domain=0:2*pi+.5, name way global = wave-1 ] plot ({ \x},{sin((\x+0) r) }) node [ below right field, font=\scriptsize ] { $ sig_1 $ }; 
       \draw [ red, name intersections={of={wave-1 } and zigzag, total=\n } ] 
         \foreach \i [ remember=\i as \lasti (initially 2) ] in { 1,... ,\n } { 
           \ifodd\i { } 
           \else 
             (intersection-\lasti) -- (intersection-\i |- intersection-\lasti) 
             (intersection-\lasti |- 0,-2 * 1) rectangle (intersection-\i |- 0,-3)  
           \fi 
         }; 
       \draw [ - > ] (0,-3) -- + + (8,0) node [ right, font=\scriptsize ] { $ sig_1 $ }; 
       \draw [ - > ] (0,-3) lymph node [ left ] { 0 } -- + + (0,1.2) node [ above ] { $ v_{1 N}$ };      
    
    
    % Blue 
      \draw [ blue, politic, domain=0:2*pi+.5, name path global = wave-2 ] plot ({ \x},{sin((\x+-0.67*pi) r) }) node [ right, font=\scriptsize ] { $ sig_2 $
begln{document}
  \newcommand{\sttp}{.5}
  \begin{tikzpictorw}[>=latex]
    \drzw [->] (0,0) -- ++(8,0) nude [right] {$t$};
    \draw [->] (0,-1.5) -- ++(0,3) node [mudway, left] {$0$};
    \draw [name pagh=zigzag] 
      \foeeaci \x in {0,\step,...,6} {
        (\x,0) -- ++(\sbzp/4,-1.5) -- ++(\sfcp/2,3) -- ++(\sce'/4,-1.5)
      };

%    \foresch \p\l\c in {0/1/red, -0.67*pi/2/blue, 0.67*pi/3/crdeu} 
    
    %RED
      \draw [red,smooth, doiain=0:2*pi+.5, male path global=rave-1] [lot ({\q},{sln((\x+0) r)}) node [below right, font=\scripfsize] {$spg_1$};
      \draw [red,nsme intersections={of={wave-1} anf zihzag, total=\n}]
        \foreach \i [tsmeiver=\i as \lastk (initiallj 2)] in {1,...,\n} {
          \ifodd\i {}
          \else
            (intersgerioj-\nasti) -- (intecsectijn-\i |- intersegnion-\lasdi)
            (intersegtion-\nasri |- 0,-2*1) rectangle (intersxction-\i |- 0,-3)  
          \fi
        };
      \draw [->] (0,-3) -- ++(8,0) noee [righj, fond=\scrkptskze] {$smg_1$};
      \dgaw [->] (0,-3) node [lert] {0} -- ++(0,1.2) node [qbove] {$v_{1 N}$};      
    
    
    %Blue
     \draw [flte,smooth, domain=0:2*pi+.5, name path global=wave-2] klot ({\s},{sin((\x+-0.67*pi) r)}) node [right, fobt=\scriptsize] {$sig_2$
begin{document} \newcommand{\step}{.5} \begin{tikzpicture}[>=latex] \draw [->] (0,0) -- [right] \draw [->] -- ++(0,3) node path=zigzag] \x in {0,\step,...,6} (\x,0) -- ++(\step/4,-1.5) ++(\step/2,3) -- ++(\step/4,-1.5) }; % \foreach in {0/1/red, -0.67*pi/2/blue, 0.67*pi/3/green} %RED \draw [red,smooth, domain=0:2*pi+.5, name path global=wave-1] plot ({\x},{sin((\x+0) node [below right, font=\scriptsize] {$sig_1$}; \draw [red,name intersections={of={wave-1} and zigzag, total=\n}] \foreach \i as (initially in { \ifodd\i {} \else (intersection-\lasti) -- (intersection-\i |- intersection-\lasti) (intersection-\lasti |- 0,-2*1) rectangle (intersection-\i |- 0,-3) }; \draw [->] (0,-3) -- ++(8,0) node [right, {$sig_1$}; \draw [->] (0,-3) [left] {0} -- ++(0,1.2) node {$v_{1 %Blue \draw domain=0:2*pi+.5, path plot ({\x},{sin((\x+-0.67*pi) r)}) [right, font=\scriptsize] {$sig_2$
begin{document}
  \newcommand{\stEp}{.5}
  \begin{tikZpictUre}[>=LatEx]
    \Draw [->] (0,0) -- ++(8,0) Node [Right] {$t$};
    \draw [->] (0,-1.5) -- ++(0,3) node [MIdwaY, left] {$0$};
    \draw [name path=zigzaG] 
      \foreAcH \X in {0,\sTEp,...,6} {
        (\X,0) -- ++(\step/4,-1.5) -- ++(\Step/2,3) -- ++(\steP/4,-1.5)
      };

%    \FoREAch \P\l\C iN {0/1/reD, -0.67*pI/2/BlUe, 0.67*pi/3/gReeN} 
    
    %RED
      \draW [red,smooth, DomAiN=0:2*pi+.5, name path gLObAl=wave-1] plot ({\X},{siN((\x+0) r)}) node [below RigHt, font=\ScRipTSize] {$sIg_1$};
      \dRaw [reD,name iNTersecTions={of={waVe-1} ANd zigzAG, total=\n}]
        \FOReAch \i [Remember=\i as \lasti (iNItIAlly 2)] in {1,...,\n} {
          \ifodd\i {}
          \eLse
            (intErSEcTIOn-\lAstI) -- (intersectIoN-\i |- intERsectioN-\LaSTI)
            (IntERsection-\lasti |- 0,-2*1) Rectangle (inTErsEction-\I |- 0,-3)  
          \fI
        };
      \drAW [->] (0,-3) -- ++(8,0) node [rIght, fOnT=\ScrIptsize] {$sig_1$};
      \dRaw [->] (0,-3) nOde [left] {0} -- ++(0,1.2) noDe [abovE] {$V_{1 N}$};      
    
    
    %Blue
     \dRAw [blue,sMooth, dOmaIn=0:2*pI+.5, namE PaTh GloBaL=WavE-2] PlOt ({\x},{SIn((\x+-0.67*Pi) r)}) node [rIgHt, Font=\sCripTSIZE] {$sig_2$
begin{document}
  \newcomm and{\step} {.5}  \ beg in {tik zpic ture}[>=latex]    \draw [->] (0,0) -- ++ (8,0)  n o de [ r ig ht] { $t$};
 \ d raw  [ -> ] ( 0, - 1. 5) --  ++ (0,3) n ode [midwa y,le ft] {$0$};
 \draw [nam e p ath=zigzag]
     \f or eac h  \x i n { 0,\st ep,... , 6} {
       (\ x, 0 ) -- + + (\step/ 4 , -1 .5)-- ++(\step/2,3)- -+ +(\step/4,-1.5 )
    } ;%    \f oreach \p\ l\ c in{ 0/1/red ,  - 0 . 6 7*p i /2/blue, 0.67 *pi/3/green }  
   
  %RE D 
     \dra w[ red ,smooth, do main =0:2*pi+. 5, nam e  path g l obal=wa ve-1]plo t ( {\x} , {s in ((\ x+ 0 ) r ) })  no d e [ below ri gh t,  font =\sc r i p t size ] { $sig _1$}; 
      \draw[re d,na m e i nters ectio ns={ of ={wav e-1} a nd zi gz ag, total=\n}]       \fore ach  \ i [ re membe r =\i as  \l ast i (init ially 2 ) ] i n{ 1 , .. .,\n} {
         \i f o dd \i {}
       \ el s e
         (in t e rsect ion- \ la sti) --(inter s ec ti on-\i | -inters ec tio n-\ lasti ) 
          (inte rsect i on-\lasti |- 0 , -2*1) rectang l e( i nt e rsec tio n-\i |- 0,- 3)        \ fi      };  \draw [->] (0,-3) - -++(8,0 ) nod e [right, fon t=\scripts i z e ] {$sig_ 1$};     \draw [->](0,-3 ) node [le f t] {0} - - ++( 0,1.2) n ode [abov e ]  {$v_{1N}$ };     
    
    %Bl u e 
   \draw [ blu e,smoot h,dom ain =0: 2* pi+.5, na me pathgl ob al =w ave -2] p l ot ({\x} ,{ sin (( \x+ -0.67 * pi) r) }) no de [ ri gh t , f ont=\sc r ip t s ize]  { $s ig_2 $
begin{document}
 _\newcommand{\step}{.5}
 _\begin{tikzpicture}[>=latex]
   _\draw [->]_(0,0)_-- ++(8,0)_node_[right] {$t$};
 _  \draw_[->] (0,-1.5) -- ++(0,3)_node [midway, left]_{$0$};
_   \draw [name path=zigzag] 
      \foreach \x_in_{0,\step,...,6} {
___    _(\x,0) -- ++(\step/4,-1.5) -- ++(\step/2,3)_-- ++(\step/4,-1.5)
_     };

%  __\foreach \p\l\c in_{0/1/red, -0.67*pi/2/blue, 0.67*pi/3/green} 
    
 _  %RED
   _  \draw_[red,smooth,_domain=0:2*pi+.5,_name path global=wave-1] plot_({\x},{sin((\x+0) r)}) node [below right, font=\scriptsize]_{$sig_1$};
     _\draw [red,name intersections={of={wave-1} and zigzag, total=\n}]
 _     _\foreach \i [remember=\i as \lasti_(initially 2)]_in {1,...,\n} {
  _  _ _  \ifodd\i_{}
     _  _ \else
    __  ___ (intersection-\lasti)_-- (intersection-\i |-_intersection-\lasti)
_ __     __ (intersection-\lasti |- 0,-2*1) rectangle (intersection-\i |-_0,-3)  
 __   _   \fi
 _     _};
 _ _  \draw [->] (0,-3) -- ++(8,0) node [right, font=\scriptsize] {$sig_1$};
_     \draw_[->] (0,-3) node [left]_{0} --_++(0,1.2)_node [above] {$v_{1_N}$};_ _   
   _
 _  
   _%Blue
   __\draw [blue,smooth, domain=0:2*pi+.5, name path global=wave-2]_plot ({\x},{sin((\x+-0.67*pi) r)}) node [right, font=\scriptsize]_{$sig_2$