# Some problem with tikzpicture [closed]

I don't know how can use tikpicture package to draw 2 figure below:

## closed as off-topic by Marco Daniel, Werner, Peter Jansson, Ludovic C., ThorstenNov 11 '13 at 17:59

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center." – Marco Daniel, Werner, Peter Jansson, Ludovic C., Thorsten
If this question can be reworded to fit the rules in the help center, please edit the question.

• Maybe you can share your first attempt so we can suggest how to make it work – Bordaigorl Nov 11 '13 at 16:34
• You may want to check the policy on "how do I draw this?" questions at the meta site. – masu Nov 11 '13 at 16:44
• Questions about how to draw specific graphics that just post an image of the desired result are really not reasonable questions to ask on the site. Please post a minimal compilable document showing that you've tried to produce the image and then people will be happy to help you with any specific problems you may have. See minimal working example (MWE) for what needs to go into such a document. – jubobs Nov 11 '13 at 16:50

The following should get you started.

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{calc,fit,decorations.pathreplacing}
\usepackage{schemabloc}

\begin{document}

\begin{tikzpicture}
\foreach \nn in {1,2,3,...,20}{
\node[draw,fill=red,minimum width=0.5em,minimum height=1.5em,inner sep=0] (n\nn) at ($(0.6*\nn,0)$){};
}
\node[fit=(n1) (n4),draw](input){};
\node[fit=(n5),draw](output){};
\draw [decorate,decoration={brace,amplitude=10pt},xshift=-4pt,yshift=0pt](input.north west) -- (input.north east) node [black,midway,above=1em] {NN Input};
\draw (output.north) --++(0,10pt)node[above=1em]{NN Output};
\end{tikzpicture}

\end{document}


• Can {1,2,3,...,20} be simplified? – kiss my armpit Nov 11 '13 at 17:04
• How can create second line and three line with text header (on left corner)? How can add arrow point to box and vertical dot? Please help me more – phuong Nov 11 '13 at 19:28
• @phuong maybe you should have some look into the very comprehensive TikZ manual. – Benedikt Bauer Nov 11 '13 at 19:31
• @ Benedikt Bauer: I have read it, but i'm a newbie. I really don't know clearly about tikz. I want to learn by example. – phuong Nov 12 '13 at 1:47
• @ all: Please help me solve this problem completely. Thank you very much – phuong Nov 12 '13 at 1:48