Matrix writing goes wrong

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












I want to write down this matrix in my latex document



enter image description here



My code for that is



begindocument
$$ F_x=
quad
beginbmatrix
1 & 0 & 0 & 0 & ... & 0 \
0 & 1 & 0 & 0 & ... & 0 \
0 & 0 & 1 & 0 & ... & 0 \
& & & & 3N Columns
endbmatrix
$$
enddocument


This code not produce desired result. Where should I change to produce desire result?










share|improve this question









New contributor




Saswati is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Side note: use [...] and not $$...$$ for display math!
    – user496634
    39 mins ago














up vote
2
down vote

favorite












I want to write down this matrix in my latex document



enter image description here



My code for that is



begindocument
$$ F_x=
quad
beginbmatrix
1 & 0 & 0 & 0 & ... & 0 \
0 & 1 & 0 & 0 & ... & 0 \
0 & 0 & 1 & 0 & ... & 0 \
& & & & 3N Columns
endbmatrix
$$
enddocument


This code not produce desired result. Where should I change to produce desire result?










share|improve this question









New contributor




Saswati is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Side note: use [...] and not $$...$$ for display math!
    – user496634
    39 mins ago












up vote
2
down vote

favorite









up vote
2
down vote

favorite











I want to write down this matrix in my latex document



enter image description here



My code for that is



begindocument
$$ F_x=
quad
beginbmatrix
1 & 0 & 0 & 0 & ... & 0 \
0 & 1 & 0 & 0 & ... & 0 \
0 & 0 & 1 & 0 & ... & 0 \
& & & & 3N Columns
endbmatrix
$$
enddocument


This code not produce desired result. Where should I change to produce desire result?










share|improve this question









New contributor




Saswati is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I want to write down this matrix in my latex document



enter image description here



My code for that is



begindocument
$$ F_x=
quad
beginbmatrix
1 & 0 & 0 & 0 & ... & 0 \
0 & 1 & 0 & 0 & ... & 0 \
0 & 0 & 1 & 0 & ... & 0 \
& & & & 3N Columns
endbmatrix
$$
enddocument


This code not produce desired result. Where should I change to produce desire result?







amsmath matrices






share|improve this question









New contributor




Saswati is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Saswati is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 2 hours ago









Troy

10.1k52164




10.1k52164






New contributor




Saswati is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 hours ago









Saswati

132




132




New contributor




Saswati is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Saswati is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Saswati is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • Side note: use [...] and not $$...$$ for display math!
    – user496634
    39 mins ago
















  • Side note: use [...] and not $$...$$ for display math!
    – user496634
    39 mins ago















Side note: use [...] and not $$...$$ for display math!
– user496634
39 mins ago




Side note: use [...] and not $$...$$ for display math!
– user496634
39 mins ago










2 Answers
2






active

oldest

votes

















up vote
1
down vote



accepted










It's a bit more complicated. You can do it with nested matrices:



documentclassarticle
usepackageamsmath

begindocument

[ F_x=
beginbmatrix
, % for symmetry
beginmatrix
1 & 0 & 0 \
0 & 1 & 0 \
0 & 0 & 1
endmatrix &
smashunderbrace%
beginmatrix
0 & dots & 0 \
0 & dots & 0 \
0 & dots & 0
endmatrix_text$3N$ columns%
,
endbmatrix
vphantom%
underbrace%
beginmatrix
0 & dots & 0 \
0 & dots & 0 \
0 & dots & 0
endmatrix_text$3N$ columns%

]

enddocument


enter image description here



The vphantom is needed to maintain the real size of the object, because we smash the second inner matrix in order TeX doesn't “see” the depth of the underbrace.



You can simplify the input by defining a temporary macro:



documentclassarticle
usepackageamsmath

begindocument

[
newcommandtempmatrix%
underbrace%
beginmatrix
0 & dots & 0 \
0 & dots & 0 \
0 & dots & 0
endmatrix_text$3N$ columns%
%

F_x=
beginbmatrix
, % for symmetry
beginmatrix
1 & 0 & 0 \
0 & 1 & 0 \
0 & 0 & 1
endmatrix &
smashtempmatrix
,
endbmatrix
vphantomtempmatrix
]

enddocument





share|improve this answer



























    up vote
    1
    down vote













    Another way to do this is as a tikz matrix of nodes:



    enter image description here



    Here is the code:



    documentclassarticle
    usepackagetikz
    usetikzlibrarymatrix,decorations.pathreplacing

    begindocument

    begintikzpicture
    matrix (M)[matrix of math nodes,
    left delimiter=(,
    right delimiter=)]
    1 & 0 & 0 & 0 & ... & 0 \
    0 & 1 & 0 & 0 & ... & 0 \
    0 & 0 & 1 & 0 & ... & 0 \
    ;
    draw[decorate, decoration=brace, mirror]
    (M-3-4.south west)--(M-3-6.south east) node[below]$3N$ columns;
    endtikzpicture

    enddocument





    share|improve this answer




















    • For that tikz must be install. I am using tex studio.
      – Saswati
      1 hour 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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );






    Saswati is a new contributor. Be nice, and check out our Code of Conduct.









     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f451928%2fmatrix-writing-goes-wrong%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    It's a bit more complicated. You can do it with nested matrices:



    documentclassarticle
    usepackageamsmath

    begindocument

    [ F_x=
    beginbmatrix
    , % for symmetry
    beginmatrix
    1 & 0 & 0 \
    0 & 1 & 0 \
    0 & 0 & 1
    endmatrix &
    smashunderbrace%
    beginmatrix
    0 & dots & 0 \
    0 & dots & 0 \
    0 & dots & 0
    endmatrix_text$3N$ columns%
    ,
    endbmatrix
    vphantom%
    underbrace%
    beginmatrix
    0 & dots & 0 \
    0 & dots & 0 \
    0 & dots & 0
    endmatrix_text$3N$ columns%

    ]

    enddocument


    enter image description here



    The vphantom is needed to maintain the real size of the object, because we smash the second inner matrix in order TeX doesn't “see” the depth of the underbrace.



    You can simplify the input by defining a temporary macro:



    documentclassarticle
    usepackageamsmath

    begindocument

    [
    newcommandtempmatrix%
    underbrace%
    beginmatrix
    0 & dots & 0 \
    0 & dots & 0 \
    0 & dots & 0
    endmatrix_text$3N$ columns%
    %

    F_x=
    beginbmatrix
    , % for symmetry
    beginmatrix
    1 & 0 & 0 \
    0 & 1 & 0 \
    0 & 0 & 1
    endmatrix &
    smashtempmatrix
    ,
    endbmatrix
    vphantomtempmatrix
    ]

    enddocument





    share|improve this answer
























      up vote
      1
      down vote



      accepted










      It's a bit more complicated. You can do it with nested matrices:



      documentclassarticle
      usepackageamsmath

      begindocument

      [ F_x=
      beginbmatrix
      , % for symmetry
      beginmatrix
      1 & 0 & 0 \
      0 & 1 & 0 \
      0 & 0 & 1
      endmatrix &
      smashunderbrace%
      beginmatrix
      0 & dots & 0 \
      0 & dots & 0 \
      0 & dots & 0
      endmatrix_text$3N$ columns%
      ,
      endbmatrix
      vphantom%
      underbrace%
      beginmatrix
      0 & dots & 0 \
      0 & dots & 0 \
      0 & dots & 0
      endmatrix_text$3N$ columns%

      ]

      enddocument


      enter image description here



      The vphantom is needed to maintain the real size of the object, because we smash the second inner matrix in order TeX doesn't “see” the depth of the underbrace.



      You can simplify the input by defining a temporary macro:



      documentclassarticle
      usepackageamsmath

      begindocument

      [
      newcommandtempmatrix%
      underbrace%
      beginmatrix
      0 & dots & 0 \
      0 & dots & 0 \
      0 & dots & 0
      endmatrix_text$3N$ columns%
      %

      F_x=
      beginbmatrix
      , % for symmetry
      beginmatrix
      1 & 0 & 0 \
      0 & 1 & 0 \
      0 & 0 & 1
      endmatrix &
      smashtempmatrix
      ,
      endbmatrix
      vphantomtempmatrix
      ]

      enddocument





      share|improve this answer






















        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        It's a bit more complicated. You can do it with nested matrices:



        documentclassarticle
        usepackageamsmath

        begindocument

        [ F_x=
        beginbmatrix
        , % for symmetry
        beginmatrix
        1 & 0 & 0 \
        0 & 1 & 0 \
        0 & 0 & 1
        endmatrix &
        smashunderbrace%
        beginmatrix
        0 & dots & 0 \
        0 & dots & 0 \
        0 & dots & 0
        endmatrix_text$3N$ columns%
        ,
        endbmatrix
        vphantom%
        underbrace%
        beginmatrix
        0 & dots & 0 \
        0 & dots & 0 \
        0 & dots & 0
        endmatrix_text$3N$ columns%

        ]

        enddocument


        enter image description here



        The vphantom is needed to maintain the real size of the object, because we smash the second inner matrix in order TeX doesn't “see” the depth of the underbrace.



        You can simplify the input by defining a temporary macro:



        documentclassarticle
        usepackageamsmath

        begindocument

        [
        newcommandtempmatrix%
        underbrace%
        beginmatrix
        0 & dots & 0 \
        0 & dots & 0 \
        0 & dots & 0
        endmatrix_text$3N$ columns%
        %

        F_x=
        beginbmatrix
        , % for symmetry
        beginmatrix
        1 & 0 & 0 \
        0 & 1 & 0 \
        0 & 0 & 1
        endmatrix &
        smashtempmatrix
        ,
        endbmatrix
        vphantomtempmatrix
        ]

        enddocument





        share|improve this answer












        It's a bit more complicated. You can do it with nested matrices:



        documentclassarticle
        usepackageamsmath

        begindocument

        [ F_x=
        beginbmatrix
        , % for symmetry
        beginmatrix
        1 & 0 & 0 \
        0 & 1 & 0 \
        0 & 0 & 1
        endmatrix &
        smashunderbrace%
        beginmatrix
        0 & dots & 0 \
        0 & dots & 0 \
        0 & dots & 0
        endmatrix_text$3N$ columns%
        ,
        endbmatrix
        vphantom%
        underbrace%
        beginmatrix
        0 & dots & 0 \
        0 & dots & 0 \
        0 & dots & 0
        endmatrix_text$3N$ columns%

        ]

        enddocument


        enter image description here



        The vphantom is needed to maintain the real size of the object, because we smash the second inner matrix in order TeX doesn't “see” the depth of the underbrace.



        You can simplify the input by defining a temporary macro:



        documentclassarticle
        usepackageamsmath

        begindocument

        [
        newcommandtempmatrix%
        underbrace%
        beginmatrix
        0 & dots & 0 \
        0 & dots & 0 \
        0 & dots & 0
        endmatrix_text$3N$ columns%
        %

        F_x=
        beginbmatrix
        , % for symmetry
        beginmatrix
        1 & 0 & 0 \
        0 & 1 & 0 \
        0 & 0 & 1
        endmatrix &
        smashtempmatrix
        ,
        endbmatrix
        vphantomtempmatrix
        ]

        enddocument






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 2 hours ago









        egreg

        683k8418223067




        683k8418223067




















            up vote
            1
            down vote













            Another way to do this is as a tikz matrix of nodes:



            enter image description here



            Here is the code:



            documentclassarticle
            usepackagetikz
            usetikzlibrarymatrix,decorations.pathreplacing

            begindocument

            begintikzpicture
            matrix (M)[matrix of math nodes,
            left delimiter=(,
            right delimiter=)]
            1 & 0 & 0 & 0 & ... & 0 \
            0 & 1 & 0 & 0 & ... & 0 \
            0 & 0 & 1 & 0 & ... & 0 \
            ;
            draw[decorate, decoration=brace, mirror]
            (M-3-4.south west)--(M-3-6.south east) node[below]$3N$ columns;
            endtikzpicture

            enddocument





            share|improve this answer




















            • For that tikz must be install. I am using tex studio.
              – Saswati
              1 hour ago














            up vote
            1
            down vote













            Another way to do this is as a tikz matrix of nodes:



            enter image description here



            Here is the code:



            documentclassarticle
            usepackagetikz
            usetikzlibrarymatrix,decorations.pathreplacing

            begindocument

            begintikzpicture
            matrix (M)[matrix of math nodes,
            left delimiter=(,
            right delimiter=)]
            1 & 0 & 0 & 0 & ... & 0 \
            0 & 1 & 0 & 0 & ... & 0 \
            0 & 0 & 1 & 0 & ... & 0 \
            ;
            draw[decorate, decoration=brace, mirror]
            (M-3-4.south west)--(M-3-6.south east) node[below]$3N$ columns;
            endtikzpicture

            enddocument





            share|improve this answer




















            • For that tikz must be install. I am using tex studio.
              – Saswati
              1 hour ago












            up vote
            1
            down vote










            up vote
            1
            down vote









            Another way to do this is as a tikz matrix of nodes:



            enter image description here



            Here is the code:



            documentclassarticle
            usepackagetikz
            usetikzlibrarymatrix,decorations.pathreplacing

            begindocument

            begintikzpicture
            matrix (M)[matrix of math nodes,
            left delimiter=(,
            right delimiter=)]
            1 & 0 & 0 & 0 & ... & 0 \
            0 & 1 & 0 & 0 & ... & 0 \
            0 & 0 & 1 & 0 & ... & 0 \
            ;
            draw[decorate, decoration=brace, mirror]
            (M-3-4.south west)--(M-3-6.south east) node[below]$3N$ columns;
            endtikzpicture

            enddocument





            share|improve this answer












            Another way to do this is as a tikz matrix of nodes:



            enter image description here



            Here is the code:



            documentclassarticle
            usepackagetikz
            usetikzlibrarymatrix,decorations.pathreplacing

            begindocument

            begintikzpicture
            matrix (M)[matrix of math nodes,
            left delimiter=(,
            right delimiter=)]
            1 & 0 & 0 & 0 & ... & 0 \
            0 & 1 & 0 & 0 & ... & 0 \
            0 & 0 & 1 & 0 & ... & 0 \
            ;
            draw[decorate, decoration=brace, mirror]
            (M-3-4.south west)--(M-3-6.south east) node[below]$3N$ columns;
            endtikzpicture

            enddocument






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 2 hours ago









            Andrew

            27.4k34075




            27.4k34075











            • For that tikz must be install. I am using tex studio.
              – Saswati
              1 hour ago
















            • For that tikz must be install. I am using tex studio.
              – Saswati
              1 hour ago















            For that tikz must be install. I am using tex studio.
            – Saswati
            1 hour ago




            For that tikz must be install. I am using tex studio.
            – Saswati
            1 hour ago










            Saswati is a new contributor. Be nice, and check out our Code of Conduct.









             

            draft saved


            draft discarded


















            Saswati is a new contributor. Be nice, and check out our Code of Conduct.












            Saswati is a new contributor. Be nice, and check out our Code of Conduct.











            Saswati is a new contributor. Be nice, and check out our Code of Conduct.













             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f451928%2fmatrix-writing-goes-wrong%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            Long meetings (6-7 hours a day): Being “babysat” by supervisor

            Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

            Confectionery