Math & ScienceSpecifying the Size of a Matrix

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
dexxtress
Posts: 5
Joined: Mon Jul 16, 2012 3:15 pm

Specifying the Size of a Matrix

Post by dexxtress »

Hi everyone.

I have new question. Sorry, but I haven't code for this problem, my question is general :D.
So... I would like create a matrix having for example first column two times bigger (width) than second (and vice versa for rows). I enclose examples.
matrix-size.jpg
matrix-size.jpg (67.75 KiB) Viewed 2921 times
How can I achieve these results?

P.S.:
Using multicolumn or multirow command, I don't get effects.


Please, help me.
Thx in advance.
Last edited by localghost on Tue Jul 17, 2012 10:11 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10359
Joined: Mon Mar 10, 2008 9:44 pm

Specifying the Size of a Matrix

Post by Stefan Kottwitz »

dexxtress wrote:Using multicolumn or multirow command, I don't get effects.

And what did you try? \multirow together with \multicolumn are a possible way, plus changing the font size.

Stefan
LaTeX.org admin
dexxtress
Posts: 5
Joined: Mon Jul 16, 2012 3:15 pm

Re: Specifying the Size of a Matrix

Post by dexxtress »

Yes, I've tried multicolumn together with multirow (multirow 'inside' multicolumn)
I don't want make bigger font size. To example 1: Number 2 takes place of two cells (this is my destination), but when I use \multicolumn{2}{c}{2}, has no effect.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10359
Joined: Mon Mar 10, 2008 9:44 pm

Specifying the Size of a Matrix

Post by Stefan Kottwitz »

dexxtress wrote:but when I use \multicolumn{2}{c}{2}, has no effect.
For me, it usually has effect. Perhaps show the whole context, i.e. an example matrix where it did not work, so we can help you to fix that.

Stefan
LaTeX.org admin
dexxtress
Posts: 5
Joined: Mon Jul 16, 2012 3:15 pm

Specifying the Size of a Matrix

Post by dexxtress »

This is my code:

Code: Select all

\begin{equation*}
\left[
\begin{array}{cc|cc|cc}
\multicolumn{2}{c}{\multirow{2}{*}{$1$}} & 
\multicolumn{2}{c}{\multirow{2}{*}{$0$}} &
\multicolumn{2}{c}{\multirow{2}{*}{$0$}} \\
&&&&& \\ \hline
\multicolumn{2}{c}{\multirow{2}{*}{$0$}} & 2 & 3 & \multicolumn{2}{c}{\multirow{2}{*}{$0$}} \\
&& 3 & 2 && \\ \hline
\multicolumn{2}{c}{\multirow{2}{*}{$0$}} & 
\multicolumn{2}{c}{\multirow{2}{*}{$0$}} &
\multicolumn{2}{c}{\multirow{2}{*}{$1$}}
\end{array}
\right]
\end{equation*}
I've got (my result in the picture):

P.S.
Thx for yours interest.
Attachments
myMatrix.PNG
myMatrix.PNG (2.98 KiB) Viewed 2912 times
Post Reply