small fixes
This commit is contained in:
parent
2c389639dc
commit
df2821d97a
@ -68,9 +68,9 @@
|
||||
|
||||
% float placement fractions:
|
||||
\renewcommand{\textfraction}{0.2}
|
||||
\renewcommand{\topfraction}{0.8}
|
||||
\renewcommand{\topfraction}{0.9}
|
||||
\renewcommand{\bottomfraction}{0.0}
|
||||
\renewcommand{\floatpagefraction}{0.5}
|
||||
\renewcommand{\floatpagefraction}{0.7}
|
||||
|
||||
% spacing for floats:
|
||||
\setlength{\floatsep}{12pt plus 2pt minus 2pt}
|
||||
@ -261,7 +261,7 @@
|
||||
\ifthenelse{\equal{\exercisesource}{}}{}%
|
||||
{\ifthenelse{\value{exercisef}>\value{maxexercise}}{}%
|
||||
{\addtocounter{lstlisting}{-1}%
|
||||
\lstinputlisting[belowskip=0pt,aboveskip=1ex,nolol=true,title={\textbf{Listing:} \exercisefile}]{\codepath\exercisesource}%
|
||||
\lstinputlisting[belowskip=0pt,aboveskip=1ex,nolol=true,title={\textbf{\tr{Solution}{L\"osung}:} \exercisefile}]{\codepath\exercisesource}%
|
||||
\ifthenelse{\equal{\exerciseoutput}{}}{}%
|
||||
{\addtocounter{lstlisting}{-1}%
|
||||
\lstinputlisting[language={},title={\textbf{\tr{Output}{Ausgabe}:}},nolol=true,belowskip=0pt]{\codepath\exerciseoutput}}}}%
|
||||
|
@ -376,6 +376,12 @@ erstes Argument wieder ein Handle auf die Figure erwartet. Das zweite
|
||||
Argument ist der Dateiname, und zuletzt muss das gew\"unschte Format
|
||||
(Box \ref{graphicsformatbox}) angegeben werden.
|
||||
|
||||
\begin{figure}[t]
|
||||
\includegraphics{spike_detection}
|
||||
\titlecaption{Automatisch erstellter Plot.}{Dieser Plot wurde vollst\"andig
|
||||
mit dem Skript in Listing \ref{niceplotlisting} erstellt und
|
||||
gespeichert.}\label{spikedetectionfig}
|
||||
\end{figure}
|
||||
\begin{ibox}[t]{\label{graphicsformatbox}Dateiformate f\"ur Abbildungen.}
|
||||
Es gibt zwei grunds\"atzlich verschiedene Arten von Dateiformaten f\"ur
|
||||
Graphiken:
|
||||
@ -383,7 +389,6 @@ Argument ist der Dateiname, und zuletzt muss das gew\"unschte Format
|
||||
\item \determ{Rastergraphik} (\enterm{bitmap})
|
||||
\item \determ{Vektorgraphik} (\enterm{vector graphics})
|
||||
\end{enumerate}
|
||||
|
||||
Bei Rastergraphiken wird f\"ur jeden Bildpunkt (jedes Pixel) der
|
||||
aktuelle Farbwert angegeben. Rastergraphiken haben eine bestimmte
|
||||
Aufl\"osung (z.B. 300\,dpi --- dots per inch). Sie sind vor allem
|
||||
@ -392,15 +397,14 @@ Argument ist der Dateiname, und zuletzt muss das gew\"unschte Format
|
||||
Polygone, ...) beschrieben. Der Vorteil der Vektorgraphiken
|
||||
ist die Skalierbakeit ohne Qualit\"atsverlust.
|
||||
|
||||
\vspace{1ex}
|
||||
\begin{minipage}[t]{0.38\textwidth}
|
||||
\mbox{}\\[-2ex]
|
||||
\includegraphics[width=0.93\textwidth]{VectorBitmap.pdf}
|
||||
\includegraphics[width=0.85\textwidth]{VectorBitmap.pdf}
|
||||
\rotatebox{90}{\footnotesize by Darth Stabro at en.wikipedia.org}
|
||||
\end{minipage}
|
||||
\hfill
|
||||
\begin{minipage}[t]{0.5\textwidth}
|
||||
Von \matlab{} unterst\"utzte Formate\footnote{Auswahl, mehr Information in der Hilfe zu \code{saveas()}}:\\[2ex]
|
||||
Von \matlab{} unterst\"utzte Formate\footnote{mehr Information in der Hilfe zu \code{saveas()}}:\\[2ex]
|
||||
\begin{tabular}{|l|c|l|}
|
||||
\hline
|
||||
\textbf{Format} & \textbf{Typ} & \code{saveas()} Argument \erh \\ \hline
|
||||
@ -414,7 +418,6 @@ Argument ist der Dateiname, und zuletzt muss das gew\"unschte Format
|
||||
bmp & Bitmap & \varcode{'bmp'} \\ \hline
|
||||
\end{tabular}
|
||||
\end{minipage}
|
||||
\vspace{1ex}
|
||||
|
||||
Wenn aus \matlab{} heraus Graphiken gespeichert werden sollen, dann
|
||||
ist es meistens sehr sinnvoll sie als Vektorgraphik zu speichern. Im
|
||||
@ -426,13 +429,6 @@ Argument ist der Dateiname, und zuletzt muss das gew\"unschte Format
|
||||
Rastergraphik allerdings deutlich schneller und speichereffizienter.
|
||||
\end{ibox}
|
||||
|
||||
\begin{figure}[t]
|
||||
\includegraphics{spike_detection}
|
||||
\titlecaption{Automatisch erstellter Plot.}{Dieser Plot wurde vollst\"andig
|
||||
mit dem Skript in Listing \ref{niceplotlisting} erstellt und
|
||||
gespeichert.}\label{spikedetectionfig}
|
||||
\end{figure}
|
||||
|
||||
\lstinputlisting[caption={Skript zur Erstellung des Plots in \figref{spikedetectionfig}.}, label=niceplotlisting]{automatic_plot.m}
|
||||
|
||||
Neben den Standard-Linienplots gibt es eine ganze Reihe weiterer
|
||||
|
@ -62,7 +62,7 @@ Gleichheitszeichen ist der sogenannte
|
||||
ein leerer Wert zugewiesen wird. Da \matlab{}, wenn nicht anders
|
||||
angegeben, immer den \codeterm{double} Datentypen benutzt, haben beide
|
||||
Variablen diesen Datentyp. In Zeile 9 wird der Variablen \varcode{z} der Buchstabe
|
||||
``A'' zugewiesen. \varcode{z} nicht ein Flie{\ss}kommazahl von Typ \codeterm{double},
|
||||
``A'' zugewiesen. \varcode{z} ist nicht ein Flie{\ss}kommazahl von Typ \codeterm{double},
|
||||
sondern ein \codeterm{character} (Zeichen).
|
||||
|
||||
Der Datentyp einer Variable kann mit \code{class()} abgefragt werden.
|
||||
@ -266,7 +266,6 @@ Vektor \varcode{a} von oben hat folgende Gr\"o{\ss}en:
|
||||
>> length(a)
|
||||
ans =
|
||||
10
|
||||
|
||||
>> size(a)
|
||||
ans =
|
||||
1 10
|
||||
@ -291,7 +290,6 @@ b =
|
||||
>> length(b)
|
||||
ans =
|
||||
10
|
||||
|
||||
>> size(b)
|
||||
ans =
|
||||
10 1
|
||||
@ -526,13 +524,14 @@ m\"oglich, vermieden werden.
|
||||
\begin{lstlisting}[caption={Zusammenf\"ugen und Erweitern von Vektoren.}, label=vectorinsertlisting]
|
||||
>> a = [4 3 2 1];
|
||||
>> b = [10 12 14 16];
|
||||
>> c = [a b] % erstelle einen Vektor aus einer Liste von Vektoren
|
||||
>> c = [a b] % erstelle einen Vektor aus einer Liste von Vektoren
|
||||
c =
|
||||
4 3 2 1 10 12 14 16
|
||||
>> length(c)
|
||||
ans = 8
|
||||
>> length(a) + length(b)
|
||||
ans = 8
|
||||
|
||||
>> c = [a b']; % Vektorlayout muss uebereinstimmen
|
||||
Error using horzcat
|
||||
Dimensions of matrices being concatenated are not consistent.
|
||||
|
Reference in New Issue
Block a user