Quantcast
Channel: グラフ - 廿TT
Viewing all articles
Browse latest Browse all 123

よく状態空間モデルの説明で出てくる図を tikz で書く

$
0
0

f:id:abrahamcow:20170725224336p:plain

¥documentclass[dvipdfmx]{standalone}¥usepackage{tikz}¥usetikzlibrary{shapes, positioning,arrows,automata}¥begin{document}¥begin{tikzpicture}[->, auto,thick]¥node[state, fill=gray, text=white] (a1) {$¥alpha_1$};
    ¥node[state, fill=gray, text=white][right = of a1] (a2) {$¥alpha_2$};
    ¥node[state, fill=gray, text=white][right = of a2] (a3) {$¥alpha_3$};
    ¥node[state, fill=gray, text=white][right = of a3] (aT) {$¥alpha_T$};;
    ¥node[state][below = of a1] (y1)  {$y_1$};
    ¥node[state][below = of a2] (y2)  {$y_2$};
    ¥node[state][below = of a3] (y3)  {$y_3$};
    ¥node[state][below = of aT] (yT)  {$y_T$};    
    ¥path[->](a1) edge  (a2);
    ¥path[->](a2) edge  (a3);
    ¥path[->](a3) edge[dotted]  (aT);
    ¥path[->](a1) edge  (y1);
    ¥path[->](a2) edge  (y2);
    ¥path[->](a3) edge  (y3);
    ¥path[->](aT) edge  (yT);
¥end{tikzpicture}¥end{document}

Viewing all articles
Browse latest Browse all 123

Trending Articles