Tikz: MIMO 시스템의 드로잉 포인트

Tikz: MIMO 시스템의 드로잉 포인트

나는 다음과 같은 사진을 가지고 있습니다 :

MIMO

다음 이미지에 표시된 대로 가운데 화살표를 점으로 바꾸려고 합니다.

여기에 이미지 설명을 입력하세요

\documentclass[12pt,a4paper]{scrartcl}
\begin{document}
\usetikzlibrary{decorations.markings}
\usepackage{tikz}    
\begin{figure}[htbp]
\centering
\begin{tikzpicture}
\node (System) [draw,minimum size=24mm] {$\sum$};
\coordinate[above left = of System.west] (a1);
\coordinate[below = of a1] (a2);
\coordinate[below = of a2] (a3);
\coordinate[above right= of System.east] (b1);
\foreach \i [count=\xi from 1] in {2,...,5}
    \coordinate[below=of b\xi] (b\i);
\foreach \i [count=\xi from 1] in {$u_1$,$u_2$,$u_3$}
\draw[-latex'] (a\xi) node[left] {\i} -- (a\xi-| System.west);
\foreach \i [count=\xi from 1] in {$y_1$,$y_2$,$y_3$}
    \draw[-latex'] (System.east |- b\xi) -- (b\xi) node[right] {\i};
\end{tikzpicture}
\caption{Strukturbild eines MIMO-Systems}
\label{fig:mimo}
\end{figure}
\end{document}

n-in 또는 출력이 있을 수 있음을 나타내기 위해 마지막 이름 yn과 의 이름을 바꿉니다. un이를 어떻게 달성합니까?

답변1

  • 패키지와 라이브러리는 문서 서문에 로드되어야 했습니다. 라이브러리가 아닌 첫 번째 패키지입니다!
  • MWE에 대해 두 개의 라이브러리( arrows, positioning) 가 누락되었습니다.
  • 대신 아래 MWE에서 사용하는 것처럼 arrows사용하는 것이 좋습니다.arrows.meta

편집하다: 아래 귀하의 의견을 고려하십시오.

\documentclass[12pt,a4paper]{scrartcl}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,
                positioning}

\begin{document}
    \begin{figure}[htbp]
\centering
    \begin{tikzpicture}[
node distance = 6mm and 12mm
                        ]
\node (System) [draw,minimum size=24mm] {$\sum$};
%
\coordinate[above  left = of System.west, label=left:$u_1$] (a1);
\coordinate[       left = of System.west, label=left:$u_2$] (a2);
\coordinate[below  left = of System.west, label=left:$u_3$] (a3);
%
\coordinate[above right = of System.east, label=right:$y_1$] (b1);
\coordinate[      right = of System.east, label={[xshift=-4mm]left:$\vdots$}] (b2);
\coordinate[below right = of System.east, label=right:$y_n$] (b3);
%
\foreach \i in {1,2,3}
    \draw[-Latex]   (a\i) -- (a\i-| System.west);
\foreach \i in {1,3}
    \draw[-Latex]   (b\i -| System.east) -- (b\i);
    \end{tikzpicture}
\caption{Strukturbild eines MIMO-Systems}
\label{fig:mimo}
    \end{figure}
\end{document}

MWE 위에서는 이제 다음을 제공합니다.

여기에 이미지 설명을 입력하세요

답변2

라이브러리 를 사용하여 작은 원을 추가할 수 있습니다 calc.

\documentclass[12pt,a4paper]{scrartcl}

\usepackage{tikz}
\usetikzlibrary{decorations.markings,positioning,arrows,calc}

\begin{document}

\begin{figure}[htbp]
\centering
\begin{tikzpicture}
\node (System) [draw,minimum size=24mm] {$\sum$};
\coordinate[above left = of System.west] (a1);
\coordinate[below = of a1] (a2);
\coordinate[below = of a2] (a3);
\coordinate[above right= of System.east] (b1);
\foreach \i [count=\xi from 1] in {2,...,5}
    \coordinate[below=of b\xi] (b\i);
\foreach \i [count=\xi from 1] in {$u_1$,$u_2$}
\draw[-latex'] (a\xi) node[left] {\i} -- (a\xi-| System.west);
\draw[-latex'] (a3) node[left] {$u_n$} -- (a3-| System.west);
%\foreach \i [count=\xi from 1] in {$y_1$,$y_2$,$y_3$}
%    \draw[-latex'] (System.east |- b\xi) -- (b\xi) node[right] {\i};
\draw[-latex'] (System.east |- b1) -- (b1) node[right] {$y_1$};
\draw[-latex'] (System.east |- b3) -- (b3) node[right] {$y_n$};
\fill ($(b1)+(-0.5,-0.75)$) circle (0.03cm);   
\fill ($(b1)+(-0.5,-1)$) circle (0.03cm);   
\fill ($(b1)+(-0.5,-1.25)$) circle (0.03cm);   
\end{tikzpicture}
\caption{Strukturbild eines MIMO-Systems}
\label{fig:mimo}
\end{figure}
\end{document}

여기에 이미지 설명을 입력하세요

관련 정보