Seite 1 von 1

Fehler bei Matrix Konstruktion

Verfasst: Mi 10. Aug 2011, 14:18
von jig1
Hallo,
ich möchte eine Matrix in Latex erstellen. mein Code dafür lautet:
%
\documentclass[oneside,12pt]{article}
\usepackage[latin1]{inputenc}
\usepackage{cmap}
\usepackage[T1]{fontenc}
\usepackage{epsf,ngerman}
\usepackage[ngerman]{babel}
\usepackage{amsmath,amsfonts,amsthm,amssymb}
%\usepackage{grahpicx,mathcomp}
\usepackage{latexsym}
\usepackage{hhline}
\usepackage{epsfig}
\usepackage{textcomp}
%\usepackage{a4wide}
\usepackage[usenames]{color}
\usepackage{framed}
\usepackage{float}

\usepackage[bottom, hang]{footmisc}
\usepackage{euscript,graphicx}
\usepackage{multicol}
%\usepackage{ulem}
\usepackage{nicefrac}
\usepackage{fancybox}
\usepackage[bf]{caption2}
\begin{eqnarray}
\mathcal{MW}_1 = 
\begin{bmatrix}
h_1    & h_0    & 0      & 0      & 0      & \ldots & 0      & 0      & 0      & h_3    & 0 \\
h_3    & h_2    & h_1    & h_0    & 0      & \ldots & 0      & 0      & 0      & 0      & 0 \\
\vdots & \vdots & \vdots & \vdots & \vdots & \ddots & \vdots & \vdots & \vdots & \vdots & 0 \\
0      & 0      & 0      & 0      & 0      & \ldots & 0      & h_3    & h_2    & h_1    & 0 \\
\end{bmatrix} \nonumber
\end{eqnarray}
%[\code]

Das Problem, das jetzt bei mir auftritt ist, dass wenn ich die letzte Spalte weglasse die Matrix korrekt ausgegeben wird.
Füge ich die letzte Spalte (die ich auch brauche) hinzu, so kommt die Fehlermeldung: ! Extra alignment tab has been changed to \cr

Was bedeutet das und wie kann ich meine Matrix korrekt ausgeben lassen in ein pdf-doument...

bin für jede hilfe dankbar

lg jig

Verfasst: Mi 10. Aug 2011, 15:26
von jig1
Hallo nochmal,

ich habe für mein Problem eine Lösung gefunden.

Für alle die es interessiert:
\[ \mathcal{MW}_1 = \left ( \begin{array} {rrrrrrrrrrrrr} 
h_1     & h_0    & 0      & 0      & 0      & \ldots & 0      & 0       & h_{L-1} &        & \ldots  &        & h_2    \\
h_3     & h_2    & h_1    & h_0    & 0      & \ldots & 0      & 0       & 0       & 0      & h_{L-1} & \ldots & 0      \\
\vdots  & \vdots & \vdots & \vdots & \vdots & \ddots & \vdots & \vdots  & \vdots  & \vdots & \vdots  & \vdots & \vdots \\
0       & 0      & 0      & 0      & 0      & \ldots & 0      & h_{L-1} &         &        & \ldots  &        & h_0    \\
\end{array}\right ) \] 
mir hat es zumindest geholfen...

lg jig

Rückfrage

Verfasst: Mi 10. Aug 2011, 16:34
von Hawx
Hallo,

wärst du so freundlich, den ganzen und laufenden Code nochmal hier zu posten?

Ich bekomme nämlich deinen ersten Code mit dem zweiten Code nicht zu einem lauffähigen Ergebnis.

Danke!