Formelsatz für Mathematik, Naturwissenschaften und Technik
 
			
		
		
			
				
																			
								Feedback1000 							 
						Forum-Newbie 			
		Beiträge:  8  		Registriert:  Di 10. Jul 2018, 11:34 		
		
						
						
		 
		
						
						
													
							
						
									
						Beitrag 
					 
								von Feedback1000   »  Di 25. Mär 2025, 12:36 
			
			
			
			
			Hallo.
Ich habe versucht, die Matrix aus dem angehängten Bild nachzubauen, bin aber mit dem Ergebnis nicht zufrieden:
 Die Zeilen der Matrix scheinen ein wenig „gequetscht“. Kann man da einen manuellen Zeilenabstand einstellen? 
 die obere graue Zeile (x1 x2 ... xu) passen nicht ganz zu den Spalten der Matrix. 
 \underset ist zwar ganz funny, ist aber nicht so, wie im Bild: "n x u" müsste unter "A" stehen. 
 
 
Es wäre toll, wenn mir jemand dazu ein paar Hinweise geben könnte. Danke
Hier mein aktueller Stand:
\documentclass{article}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{array}
\begin{document}
	
	\[
	A := \begin{bmatrix}
		\frac{\partial f_1}{\partial x_1} & \frac{\partial f_1}{\partial x_2} & \cdots & \frac{\partial f_1}{\partial x_u} \\
		\frac{\partial f_2}{\partial x_1} & \frac{\partial f_2}{\partial x_2} & \cdots & \frac{\partial f_2}{\partial x_u} \\
		\vdots & \vdots & \ddots & \vdots \\
		\frac{\partial f_n}{\partial x_1} & \frac{\partial f_n}{\partial x_2} & \cdots & \frac{\partial f_n}{\partial x_u}
	\end{bmatrix}
		\]
	
	\[
	A := 
	\underset{\textcolor{gray}{(n \times u)}}{\underbrace{\begin{bmatrix}
		\frac{\partial f_1}{\partial x_1} & \frac{\partial f_1}{\partial x_2} & \cdots & \frac{\partial f_1}{\partial x_u} \\
		\frac{\partial f_2}{\partial x_1} & \frac{\partial f_2}{\partial x_2} & \cdots & \frac{\partial f_2}{\partial x_u} \\
		\vdots & \vdots & \ddots & \vdots \\
		\frac{\partial f_n}{\partial x_1} & \frac{\partial f_n}{\partial x_2} & \cdots & \frac{\partial f_n}{\partial x_u}
	\end{bmatrix}}}
	\]
	
	\[
	A := 
	\underset{\textcolor{gray}{(n \times u)}}{
		\underbrace{
			\begin{array}{c@{}c}
				& \begin{array}{cccc}
					\textcolor{gray}{x_1} & \textcolor{gray}{x_2} & \cdots & \textcolor{gray}{x_u}
				\end{array} \\ 
				\begin{array}{c}
					\textcolor{gray}{F_1} \\ 
					\textcolor{gray}{F_2} \\ 
					\vdots \\ 
					\textcolor{gray}{F_n}
				\end{array}
				& \left[
				\begin{array}{cccc}
					\frac{\partial f_1}{\partial x_1} & \frac{\partial f_1}{\partial x_2} & \cdots & \frac{\partial f_1}{\partial x_u} \\
					\frac{\partial f_2}{\partial x_1} & \frac{\partial f_2}{\partial x_2} & \cdots & \frac{\partial f_2}{\partial x_u} \\
					\vdots & \vdots & \ddots & \vdots \\
					\frac{\partial f_n}{\partial x_1} & \frac{\partial f_n}{\partial x_2} & \cdots & \frac{\partial f_n}{\partial x_u}
				\end{array}
				\right]
			\end{array}
		}
	}
	\]
	
\end{document}
  
			
							
					
						Dateianhänge
					 
											
			
				
			 
					 
		
		
		
			 
									 
			
									
									
						 
		 
				
		
		 
	 
	 
				
		
		
			
				
								Stefan Kottwitz 							 
						Admin 			
		Beiträge:  2796  		Registriert:  Di 8. Jul 2008, 00:39 		
		
											
							
				Kontaktdaten: 
				
			 
				
		 
		
						
						
													
							
						
									
						Beitrag 
					 
								von Stefan Kottwitz   »  Di 25. Mär 2025, 13:31 
			
			
			
			
			Hallo,
kannst Du durch Vergrößern von \arraystretch machen, und danach wieder auf 1 setzen 
 müsste man strengenommen in eine gemeinsame Matrix packen, doch man kann es auch manuell bisschen durch Einfügen von Leerraum justieren, 
 mach halt das \underset zum A und nicht zur Matrix, wo auch noch ein \underbrace dabei ist, anscheinend hast Du den Code irgendwoher kopiert und möchtest es anders haben.  
\documentclass{article}
\usepackage{amsmath}
\usepackage{xcolor}
\usepackage{array}
\begin{document}
\renewcommand*{\arraystretch}{2}
	\[
	\underset{\textcolor{gray}{(n \times u)}}{A} := \begin{bmatrix}
		\frac{\partial f_1}{\partial x_1} & \frac{\partial f_1}{\partial x_2} & \cdots & \frac{\partial f_1}{\partial x_u} \\
		\frac{\partial f_2}{\partial x_1} & \frac{\partial f_2}{\partial x_2} & \cdots & \frac{\partial f_2}{\partial x_u} \\
		\vdots & \vdots & \ddots & \vdots \\
		\frac{\partial f_n}{\partial x_1} & \frac{\partial f_n}{\partial x_2} & \cdots & \frac{\partial f_n}{\partial x_u}
	\end{bmatrix}
		\]
	
	\[
	\underset{\textcolor{gray}{(n \times u)}}{A} :=
	  \begin{bmatrix}
		\frac{\partial f_1}{\partial x_1} & \frac{\partial f_1}{\partial x_2} & \cdots & \frac{\partial f_1}{\partial x_u} \\
		\frac{\partial f_2}{\partial x_1} & \frac{\partial f_2}{\partial x_2} & \cdots & \frac{\partial f_2}{\partial x_u} \\
		\vdots & \vdots & \ddots & \vdots \\
		\frac{\partial f_n}{\partial x_1} & \frac{\partial f_n}{\partial x_2} & \cdots & \frac{\partial f_n}{\partial x_u}
	\end{bmatrix}
	\]
	
	\[
	\underset{\textcolor{gray}{(n \times u)}}{A} :=
			\begin{array}{c@{}c}
				& \begin{array}{cccc}
				\textcolor{gray}{\ \ \ x_1\ } & \textcolor{gray}{\ x_2\ } & \cdots\ \  & \textcolor{gray}{\!\!x_u\ \ \ }
							\end{array} \\ 
				\begin{array}{c}
					\textcolor{gray}{F_1} \\ 
					\textcolor{gray}{F_2} \\ 
					\vdots \\ 
					\textcolor{gray}{F_n}
				\end{array}
				& \left[
				\begin{array}{cccc}
					\frac{\partial f_1}{\partial x_1} & \frac{\partial f_1}{\partial x_2} & \cdots & \frac{\partial f_1}{\partial x_u} \\
					\frac{\partial f_2}{\partial x_1} & \frac{\partial f_2}{\partial x_2} & \cdots & \frac{\partial f_2}{\partial x_u} \\
					\vdots & \vdots & \ddots & \vdots \\
					\frac{\partial f_n}{\partial x_1} & \frac{\partial f_n}{\partial x_2} & \cdots & \frac{\partial f_n}{\partial x_u}
				\end{array}
				\right]
			\end{array}
	\]
\end{document} 
Stefan
 
			
			
									
									
						 
		 
				
		
		 
	 
	 
				
		
		
			
				
																			
								Feedback1000 							 
						Forum-Newbie 			
		Beiträge:  8  		Registriert:  Di 10. Jul 2018, 11:34 		
		
						
						
		 
		
						
						
													
							
						
									
						Beitrag 
					 
								von Feedback1000   »  Do 27. Mär 2025, 10:54 
			
			
			
			
			Vielen Dank. Genau das, was ich gesucht hatte.
			
			
									
									
						 
		 
				
		
		 
	 
	 
				
		
		
			
				
																			
								Feedback1000 							 
						Forum-Newbie 			
		Beiträge:  8  		Registriert:  Di 10. Jul 2018, 11:34 		
		
						
						
		 
		
						
						
													
							
						
									
						Beitrag 
					 
								von Feedback1000   »  Do 27. Mär 2025, 11:01 
			
			
			
			
			Nun würde ich gern noch die Einträge der Diagonale einfärben. Müsste ich jetzt jeden Eintrag manuell einfärben, oder gibt es da auch einen coolen Kniff?
			
			
									
									
						 
		 
				
		
		 
	 
	 
				
		
		
			
				
																			
								Feedback1000 							 
						Forum-Newbie 			
		Beiträge:  8  		Registriert:  Di 10. Jul 2018, 11:34 		
		
						
						
		 
		
						
						
													
							
						
									
						Beitrag 
					 
								von Feedback1000   »  Fr 4. Apr 2025, 11:03 
			
			
			
			
			Mir ist aufgefallen, dass "A :=" nicht mittig zum "Matrix-Konstrukt" ausgerichtet ist. Es müsste noch ein wenig tiefer stehen. Siehst du da noch eine Möglichkeit?
			
			
									
									
						 
		 
				
		
		 
	 
	 
				
		
		
			
				
								Stefan Kottwitz 							 
						Admin 			
		Beiträge:  2796  		Registriert:  Di 8. Jul 2008, 00:39 		
		
											
							
				Kontaktdaten: 
				
			 
				
		 
		
						
						
													
							
						
									
						Beitrag 
					 
								von Stefan Kottwitz   »  Sa 5. Apr 2025, 12:32 
			
			
			
			
			Du kannst \raisebox verwenden, beispielsweise so:
\raisebox{-4pt}{$\underset{\textcolor{gray}{(n \times u)}}{A} :=$} 
Stefan