fixed excercise bug

This commit is contained in:
2014-10-13 17:07:26 +02:00
parent c4bc75b8f5
commit 297fbc90a1
2 changed files with 15 additions and 13 deletions

View File

@@ -855,7 +855,7 @@ Alternativ zum ``subscript indexing'' koennen die Elemente von Matrizen auch lin
\begin{enumerate}
\item \verb+x( (y <= 2) )+
\item \verb+x( (x > 2) | (y < 8) )+
\item \verb+x( (x == 0) \& (y == 0) )+
\item \verb+x( (x == 0) & (y == 0) )+
\end{enumerate}
\item Erzeuge eine 100x100 2-D Matrix mit Zufallswerten zwischen 0 und 100 (\verb+randi+). Ersetze \verb+x < 33+ mit 0, \verb+x >= 33 und x < 66+ mit 1 und alle \verb+x >= 66+ auf 2.
\item Ermittle die Anzahl Elemente fuer jede Klasse mithilfe eines Booleschen Ausdrucks.