Guest User

Untitled

a guest
Mar 19th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. documentclass{standalone}
  2. usepackage{tikz}
  3. usetikzlibrary{positioning}
  4.  
  5.  
  6. begin{document}
  7.  
  8. begin{tikzpicture}
  9. newcommandXOBJ{3}
  10. newcommandYOBJ{10}
  11. newcommandscale{0.3}
  12.  
  13. path[use as bounding box] (0,-1) rectangle (11.5,12);
  14.  
  15. node (rect) at (XOBJ,YOBJ) (OBJ) [draw,thick,minimum width=1.7cm,minimum height=1cm] {OBJ};
  16. node (MMF) [rectangle, draw,thick,xshift = 2.5cm,minimum width=2.5cm,minimum height=0.5cm,right of = OBJ] {MMF};
  17.  
  18. filldraw [red,opacity=0.2] ([yshift=-2pt]OBJ.north east) --([yshift=2pt]OBJ.south east) -- ([yshift=2pt]MMF.south west) -- ([yshift=-2pt]MMF.north west) -- ([yshift=-2pt]OBJ.north east);
  19.  
  20. filldraw [red,opacity=0.2] ([yshift=2pt]MMF.south east) -- ([yshift=-2pt]MMF.north east) -- (10,11) -- (10,9) -- ([yshift=2pt]MMF.south east);
  21.  
  22. node (N1) [circle,draw, right of = MMF,xshift = 1.2cm,yshift = 0.2cm ] {};
  23. node (N2) [circle,draw, right of = N1,yshift = 0.1cm,xshift = 0.01] {};
  24. node (N3) [circle,draw, below right = 0.1 cm and 0.255cm of N1 ] {};
  25. node (N5) [circle,draw, below right = -0.7cm and -0.2cm of N1 ] {};
  26. node (N6) [circle,draw, below right = 0.6cm and -0.2cm of N1 ] {};
  27. node (N7) [circle,draw, below right = 0.6cm and 0.7cm of N1 ] {};
  28.  
  29. draw[scale=0.5,domain=-1:4,smooth,variable=x,red] plot ({x+17},{scale*sin(deg(x+4))+17}) node[anchor=east,xshift = -2.5cm ] {Wave 1};
  30. draw[scale=0.5,domain=-1:4,smooth,variable=x,red] plot ({x+17},{scale*cos(deg(2*x+3))+15.5}) node[anchor=east,xshift = -2.5cm ] {Wave 2};
  31. draw[scale=0.5,domain=-1:4,smooth,variable=x,red] plot ({x+17},{scale*cos(deg(3*x))+14}) node[anchor=east,xshift = -2.5cm ] {Wave 3};
  32.  
  33. draw[scale=0.5,domain=-1:4,smooth,variable=x,red] plot ({x+17},{scale*sin(deg(x+4))+scale*cos(deg(2*x+3)) + scale*cos(deg(3*x)) +12}) node[anchor=east,xshift = -2.5cm ] {Sum};
  34.  
  35. end{tikzpicture}
  36. end{document}
Add Comment
Please, Sign In to add comment