Separating matrix elements by lines The 2019 Stack Overflow Developer Survey Results Are In ...

Python - Fishing Simulator

Circular reasoning in L'Hopital's rule

Windows 10: How to Lock (not sleep) laptop on lid close?

"... to apply for a visa" or "... and applied for a visa"?

Presidential Pardon

Why can't devices on different VLANs, but on the same subnet, communicate?

Would an alien lifeform be able to achieve space travel if lacking in vision?

One-dimensional Japanese puzzle

Is there a writing software that you can sort scenes like slides in PowerPoint?

Is there a way to generate uniformly distributed points on a sphere from a fixed amount of random real numbers per point?

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?

Can the DM override racial traits?

Sub-subscripts in strings cause different spacings than subscripts

Do working physicists consider Newtonian mechanics to be "falsified"?

Simulating Exploding Dice

Could an empire control the whole planet with today's comunication methods?

Can each chord in a progression create its own key?

Can we generate random numbers using irrational numbers like π and e?

Using dividends to reduce short term capital gains?

Did the new image of black hole confirm the general theory of relativity?

Drawing arrows from one table cell reference to another

University's motivation for having tenure-track positions

Why are PDP-7-style microprogrammed instructions out of vogue?

Match Roman Numerals



Separating matrix elements by lines



The 2019 Stack Overflow Developer Survey Results Are In
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraDrawing arrows from one table cell reference to anotherHow to define the default vertical distance between nodes?TikZ/ERD: node (=Entity) label on the insideTable-like lines in tikz matrixDraw lines inside a matrixTikZ: Drawing an arc from an intersection to an intersectionDraw lines over a matrixDrawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingTikz, Matrix, and elements aboveMatrix of nodes with multiple linesHighlight elements in the matrix in tikz












1















Using the following code



documentclass{beamer}
beamertemplatenavigationsymbolsempty
usepackage{verbatim}
usepackage{tikz}
usepackage{pgfplots}
usetikzlibrary{arrows, arrows.meta}
usetikzlibrary{matrix}
begin{document}
begin{frame}[t,fragile]
frametitle{}
begin{tikzpicture}
matrix (x) [matrix of nodes,row sep=1em,column sep=1em] {%
15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\};
draw<2->[ultra thick, blue, latex'-] (x-2-1) -- (x-4-5);
% Node names: (<name of matrix>-<row>-<column>)
end{tikzpicture}
end{frame}
end{document}


from the answer to this question



Can the matrix elements be separated by lines so that it could look like a table with borders between cells










share|improve this question



























    1















    Using the following code



    documentclass{beamer}
    beamertemplatenavigationsymbolsempty
    usepackage{verbatim}
    usepackage{tikz}
    usepackage{pgfplots}
    usetikzlibrary{arrows, arrows.meta}
    usetikzlibrary{matrix}
    begin{document}
    begin{frame}[t,fragile]
    frametitle{}
    begin{tikzpicture}
    matrix (x) [matrix of nodes,row sep=1em,column sep=1em] {%
    15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
    17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
    10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
    23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
    13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\};
    draw<2->[ultra thick, blue, latex'-] (x-2-1) -- (x-4-5);
    % Node names: (<name of matrix>-<row>-<column>)
    end{tikzpicture}
    end{frame}
    end{document}


    from the answer to this question



    Can the matrix elements be separated by lines so that it could look like a table with borders between cells










    share|improve this question

























      1












      1








      1








      Using the following code



      documentclass{beamer}
      beamertemplatenavigationsymbolsempty
      usepackage{verbatim}
      usepackage{tikz}
      usepackage{pgfplots}
      usetikzlibrary{arrows, arrows.meta}
      usetikzlibrary{matrix}
      begin{document}
      begin{frame}[t,fragile]
      frametitle{}
      begin{tikzpicture}
      matrix (x) [matrix of nodes,row sep=1em,column sep=1em] {%
      15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
      17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
      10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
      23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
      13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\};
      draw<2->[ultra thick, blue, latex'-] (x-2-1) -- (x-4-5);
      % Node names: (<name of matrix>-<row>-<column>)
      end{tikzpicture}
      end{frame}
      end{document}


      from the answer to this question



      Can the matrix elements be separated by lines so that it could look like a table with borders between cells










      share|improve this question














      Using the following code



      documentclass{beamer}
      beamertemplatenavigationsymbolsempty
      usepackage{verbatim}
      usepackage{tikz}
      usepackage{pgfplots}
      usetikzlibrary{arrows, arrows.meta}
      usetikzlibrary{matrix}
      begin{document}
      begin{frame}[t,fragile]
      frametitle{}
      begin{tikzpicture}
      matrix (x) [matrix of nodes,row sep=1em,column sep=1em] {%
      15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
      17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
      10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
      23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
      13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\};
      draw<2->[ultra thick, blue, latex'-] (x-2-1) -- (x-4-5);
      % Node names: (<name of matrix>-<row>-<column>)
      end{tikzpicture}
      end{frame}
      end{document}


      from the answer to this question



      Can the matrix elements be separated by lines so that it could look like a table with borders between cells







      tikz-pgf beamer tikz-matrix






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 34 mins ago









      HanyHany

      1,300417




      1,300417






















          2 Answers
          2






          active

          oldest

          votes


















          2














          matrix itself is not really designed to draw tables, but with calc one can always draw any kind of line.



          documentclass{beamer}
          beamertemplatenavigationsymbolsempty
          usepackage{verbatim}
          usepackage{tikz}
          usetikzlibrary{arrows, arrows.meta}
          usetikzlibrary{matrix,calc}
          begin{document}
          begin{frame}[t,fragile]
          frametitle{}
          begin{tikzpicture}
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] {%
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\};
          draw<2->[ultra thick, blue, latex'-] (x-2-1) -- (x-4-5);
          % Node names: (<name of matrix>-<row>-<column>)
          foreach i in {1,...,6}
          draw ($(x-1-i.north west)+(-.5em,.5em)$) -- ($(x-5-i.south west)+(-.5em,-.5em)$);
          foreach i in {1,...,5}
          draw ($(x-i-1.south west)+(-.5em,-.5em)$) -- ($(x-i-6.south east)+(.5em,-.5em)$);
          draw ($(x-1-1.north west)+(-.5em,.5em)$) -| ($(x-5-6.south east)+(.5em,-.5em)$);
          end{tikzpicture}
          end{frame}
          end{document}


          enter image description here






          share|improve this answer
























          • @JouleVThank you very much for your answer

            – Hany
            21 mins ago



















          2














          Just for fun with some styles.



          documentclass{beamer}
          beamertemplatenavigationsymbolsempty
          usepackage{verbatim}
          usepackage{tikz}
          usetikzlibrary{arrows,calc}
          usetikzlibrary{matrix}
          begin{document}
          begin{frame}[t,fragile]
          frametitle{}
          begin{tikzpicture}[vline/.style={insert path={
          ($(x-1-#1.east)!0.5!(x-1-thenumexpr1+#1.west)$) coordinate (aux)
          (x.north-|aux) -- (x.south-|aux)}},
          hline/.style={insert path={
          ($(x-#1-1.south)!0.5!(x-thenumexpr1+#1relax-1.north)$) coordinate (aux)
          (x.west|-aux) -- (x.east|-aux)}}]
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] {%
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\};
          draw[vline/.list={1,...,5},hline/.list={1,...,4}] (x.north west) rectangle
          (x.south east);
          draw<2->[ultra thick, blue, latex'-] (x-2-1) -- (x-4-5);
          % Node names: (<name of matrix>-<row>-<column>)
          end{tikzpicture}
          end{frame}
          end{document}


          enter image description here






          share|improve this answer
























          • @marmotThank you very much for your valuable answer

            – Hany
            2 mins ago














          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484606%2fseparating-matrix-elements-by-lines%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          matrix itself is not really designed to draw tables, but with calc one can always draw any kind of line.



          documentclass{beamer}
          beamertemplatenavigationsymbolsempty
          usepackage{verbatim}
          usepackage{tikz}
          usetikzlibrary{arrows, arrows.meta}
          usetikzlibrary{matrix,calc}
          begin{document}
          begin{frame}[t,fragile]
          frametitle{}
          begin{tikzpicture}
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] {%
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\};
          draw<2->[ultra thick, blue, latex'-] (x-2-1) -- (x-4-5);
          % Node names: (<name of matrix>-<row>-<column>)
          foreach i in {1,...,6}
          draw ($(x-1-i.north west)+(-.5em,.5em)$) -- ($(x-5-i.south west)+(-.5em,-.5em)$);
          foreach i in {1,...,5}
          draw ($(x-i-1.south west)+(-.5em,-.5em)$) -- ($(x-i-6.south east)+(.5em,-.5em)$);
          draw ($(x-1-1.north west)+(-.5em,.5em)$) -| ($(x-5-6.south east)+(.5em,-.5em)$);
          end{tikzpicture}
          end{frame}
          end{document}


          enter image description here






          share|improve this answer
























          • @JouleVThank you very much for your answer

            – Hany
            21 mins ago
















          2














          matrix itself is not really designed to draw tables, but with calc one can always draw any kind of line.



          documentclass{beamer}
          beamertemplatenavigationsymbolsempty
          usepackage{verbatim}
          usepackage{tikz}
          usetikzlibrary{arrows, arrows.meta}
          usetikzlibrary{matrix,calc}
          begin{document}
          begin{frame}[t,fragile]
          frametitle{}
          begin{tikzpicture}
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] {%
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\};
          draw<2->[ultra thick, blue, latex'-] (x-2-1) -- (x-4-5);
          % Node names: (<name of matrix>-<row>-<column>)
          foreach i in {1,...,6}
          draw ($(x-1-i.north west)+(-.5em,.5em)$) -- ($(x-5-i.south west)+(-.5em,-.5em)$);
          foreach i in {1,...,5}
          draw ($(x-i-1.south west)+(-.5em,-.5em)$) -- ($(x-i-6.south east)+(.5em,-.5em)$);
          draw ($(x-1-1.north west)+(-.5em,.5em)$) -| ($(x-5-6.south east)+(.5em,-.5em)$);
          end{tikzpicture}
          end{frame}
          end{document}


          enter image description here






          share|improve this answer
























          • @JouleVThank you very much for your answer

            – Hany
            21 mins ago














          2












          2








          2







          matrix itself is not really designed to draw tables, but with calc one can always draw any kind of line.



          documentclass{beamer}
          beamertemplatenavigationsymbolsempty
          usepackage{verbatim}
          usepackage{tikz}
          usetikzlibrary{arrows, arrows.meta}
          usetikzlibrary{matrix,calc}
          begin{document}
          begin{frame}[t,fragile]
          frametitle{}
          begin{tikzpicture}
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] {%
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\};
          draw<2->[ultra thick, blue, latex'-] (x-2-1) -- (x-4-5);
          % Node names: (<name of matrix>-<row>-<column>)
          foreach i in {1,...,6}
          draw ($(x-1-i.north west)+(-.5em,.5em)$) -- ($(x-5-i.south west)+(-.5em,-.5em)$);
          foreach i in {1,...,5}
          draw ($(x-i-1.south west)+(-.5em,-.5em)$) -- ($(x-i-6.south east)+(.5em,-.5em)$);
          draw ($(x-1-1.north west)+(-.5em,.5em)$) -| ($(x-5-6.south east)+(.5em,-.5em)$);
          end{tikzpicture}
          end{frame}
          end{document}


          enter image description here






          share|improve this answer













          matrix itself is not really designed to draw tables, but with calc one can always draw any kind of line.



          documentclass{beamer}
          beamertemplatenavigationsymbolsempty
          usepackage{verbatim}
          usepackage{tikz}
          usetikzlibrary{arrows, arrows.meta}
          usetikzlibrary{matrix,calc}
          begin{document}
          begin{frame}[t,fragile]
          frametitle{}
          begin{tikzpicture}
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] {%
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\};
          draw<2->[ultra thick, blue, latex'-] (x-2-1) -- (x-4-5);
          % Node names: (<name of matrix>-<row>-<column>)
          foreach i in {1,...,6}
          draw ($(x-1-i.north west)+(-.5em,.5em)$) -- ($(x-5-i.south west)+(-.5em,-.5em)$);
          foreach i in {1,...,5}
          draw ($(x-i-1.south west)+(-.5em,-.5em)$) -- ($(x-i-6.south east)+(.5em,-.5em)$);
          draw ($(x-1-1.north west)+(-.5em,.5em)$) -| ($(x-5-6.south east)+(.5em,-.5em)$);
          end{tikzpicture}
          end{frame}
          end{document}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 27 mins ago









          JouleVJouleV

          13k22663




          13k22663













          • @JouleVThank you very much for your answer

            – Hany
            21 mins ago



















          • @JouleVThank you very much for your answer

            – Hany
            21 mins ago

















          @JouleVThank you very much for your answer

          – Hany
          21 mins ago





          @JouleVThank you very much for your answer

          – Hany
          21 mins ago











          2














          Just for fun with some styles.



          documentclass{beamer}
          beamertemplatenavigationsymbolsempty
          usepackage{verbatim}
          usepackage{tikz}
          usetikzlibrary{arrows,calc}
          usetikzlibrary{matrix}
          begin{document}
          begin{frame}[t,fragile]
          frametitle{}
          begin{tikzpicture}[vline/.style={insert path={
          ($(x-1-#1.east)!0.5!(x-1-thenumexpr1+#1.west)$) coordinate (aux)
          (x.north-|aux) -- (x.south-|aux)}},
          hline/.style={insert path={
          ($(x-#1-1.south)!0.5!(x-thenumexpr1+#1relax-1.north)$) coordinate (aux)
          (x.west|-aux) -- (x.east|-aux)}}]
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] {%
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\};
          draw[vline/.list={1,...,5},hline/.list={1,...,4}] (x.north west) rectangle
          (x.south east);
          draw<2->[ultra thick, blue, latex'-] (x-2-1) -- (x-4-5);
          % Node names: (<name of matrix>-<row>-<column>)
          end{tikzpicture}
          end{frame}
          end{document}


          enter image description here






          share|improve this answer
























          • @marmotThank you very much for your valuable answer

            – Hany
            2 mins ago


















          2














          Just for fun with some styles.



          documentclass{beamer}
          beamertemplatenavigationsymbolsempty
          usepackage{verbatim}
          usepackage{tikz}
          usetikzlibrary{arrows,calc}
          usetikzlibrary{matrix}
          begin{document}
          begin{frame}[t,fragile]
          frametitle{}
          begin{tikzpicture}[vline/.style={insert path={
          ($(x-1-#1.east)!0.5!(x-1-thenumexpr1+#1.west)$) coordinate (aux)
          (x.north-|aux) -- (x.south-|aux)}},
          hline/.style={insert path={
          ($(x-#1-1.south)!0.5!(x-thenumexpr1+#1relax-1.north)$) coordinate (aux)
          (x.west|-aux) -- (x.east|-aux)}}]
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] {%
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\};
          draw[vline/.list={1,...,5},hline/.list={1,...,4}] (x.north west) rectangle
          (x.south east);
          draw<2->[ultra thick, blue, latex'-] (x-2-1) -- (x-4-5);
          % Node names: (<name of matrix>-<row>-<column>)
          end{tikzpicture}
          end{frame}
          end{document}


          enter image description here






          share|improve this answer
























          • @marmotThank you very much for your valuable answer

            – Hany
            2 mins ago
















          2












          2








          2







          Just for fun with some styles.



          documentclass{beamer}
          beamertemplatenavigationsymbolsempty
          usepackage{verbatim}
          usepackage{tikz}
          usetikzlibrary{arrows,calc}
          usetikzlibrary{matrix}
          begin{document}
          begin{frame}[t,fragile]
          frametitle{}
          begin{tikzpicture}[vline/.style={insert path={
          ($(x-1-#1.east)!0.5!(x-1-thenumexpr1+#1.west)$) coordinate (aux)
          (x.north-|aux) -- (x.south-|aux)}},
          hline/.style={insert path={
          ($(x-#1-1.south)!0.5!(x-thenumexpr1+#1relax-1.north)$) coordinate (aux)
          (x.west|-aux) -- (x.east|-aux)}}]
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] {%
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\};
          draw[vline/.list={1,...,5},hline/.list={1,...,4}] (x.north west) rectangle
          (x.south east);
          draw<2->[ultra thick, blue, latex'-] (x-2-1) -- (x-4-5);
          % Node names: (<name of matrix>-<row>-<column>)
          end{tikzpicture}
          end{frame}
          end{document}


          enter image description here






          share|improve this answer













          Just for fun with some styles.



          documentclass{beamer}
          beamertemplatenavigationsymbolsempty
          usepackage{verbatim}
          usepackage{tikz}
          usetikzlibrary{arrows,calc}
          usetikzlibrary{matrix}
          begin{document}
          begin{frame}[t,fragile]
          frametitle{}
          begin{tikzpicture}[vline/.style={insert path={
          ($(x-1-#1.east)!0.5!(x-1-thenumexpr1+#1.west)$) coordinate (aux)
          (x.north-|aux) -- (x.south-|aux)}},
          hline/.style={insert path={
          ($(x-#1-1.south)!0.5!(x-thenumexpr1+#1relax-1.north)$) coordinate (aux)
          (x.west|-aux) -- (x.east|-aux)}}]
          matrix (x) [matrix of nodes,row sep=1em,column sep=1em] {%
          15.1 & 23.7 & 19.7 & 15.4 & 18.3 & 23.0\
          17.4 & 18.6 & 12.9 & 20.3 & 13.7 & 21.4\
          10.3 & 26.1 & 15.7 & 14.0 & 17.8 & 33.8\
          23.2 & 12.9 & 29.8 & 18.3 & 14.2 & 20.8\
          13.5 & 17.1 & 20.7 & 27.1 & 18.9 & 16.6\};
          draw[vline/.list={1,...,5},hline/.list={1,...,4}] (x.north west) rectangle
          (x.south east);
          draw<2->[ultra thick, blue, latex'-] (x-2-1) -- (x-4-5);
          % Node names: (<name of matrix>-<row>-<column>)
          end{tikzpicture}
          end{frame}
          end{document}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 15 mins ago









          marmotmarmot

          117k5150283




          117k5150283













          • @marmotThank you very much for your valuable answer

            – Hany
            2 mins ago





















          • @marmotThank you very much for your valuable answer

            – Hany
            2 mins ago



















          @marmotThank you very much for your valuable answer

          – Hany
          2 mins ago







          @marmotThank you very much for your valuable answer

          – Hany
          2 mins ago




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484606%2fseparating-matrix-elements-by-lines%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Gersau Kjelder | Navigasjonsmeny46°59′0″N 8°31′0″E46°59′0″N...

          Hestehale Innhaldsliste Hestehale på kvinner | Hestehale på menn | Galleri | Sjå òg |...

          What is the “three and three hundred thousand syndrome”?Who wrote the book Arena?What five creatures were...