From 3287ff75d836424f4cd6927da59ff19a13855005 Mon Sep 17 00:00:00 2001 From: Jan Grewe Date: Mon, 9 Nov 2020 20:59:05 +0100 Subject: [PATCH] exercise update --- programming/exercises/variables_types.tex | 2 +- programming/exercises/vectors.tex | 6 +++--- programming/exercises/vectors_matrices.tex | 2 +- programming/lecture/programming.tex | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/programming/exercises/variables_types.tex b/programming/exercises/variables_types.tex index 956026f..3c4f017 100644 --- a/programming/exercises/variables_types.tex +++ b/programming/exercises/variables_types.tex @@ -15,7 +15,7 @@ %%%%% text size %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage[left=20mm,right=20mm,top=25mm,bottom=25mm]{geometry} \pagestyle{headandfoot} -\header{{\bfseries\large Exercise 1}}{{\bfseries\large Variables und Datatypes}}{{\bfseries\large 15. Oktober, 2019}} +\header{{\bfseries\large Exercise 1}}{{\bfseries\large Variables und Datatypes}}{{\bfseries\large 03. November, 2020}} \firstpagefooter{Dr. Jan Grewe}{Phone: 29 74588}{Email: jan.grewe@uni-tuebingen.de} \runningfooter{}{\thepage}{} diff --git a/programming/exercises/vectors.tex b/programming/exercises/vectors.tex index c6ef649..1ea0e8e 100644 --- a/programming/exercises/vectors.tex +++ b/programming/exercises/vectors.tex @@ -14,7 +14,7 @@ %%%%% text size %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage[left=20mm,right=20mm,top=25mm,bottom=25mm]{geometry} \pagestyle{headandfoot} -\header{{\bfseries\large Exercise 2}}{{\bfseries\large Vectors}}{{\bfseries\large 17. Oktober, 2019}} +\header{{\bfseries\large Exercise 2}}{{\bfseries\large Vectors}}{{\bfseries\large 03. November, 2020}} \firstpagefooter{Dr. Jan Grewe}{Phone: 29 74588}{Email: jan.grewe@uni-tuebingen.de} \runningfooter{}{\thepage}{} @@ -41,7 +41,7 @@ lecture. You should try to solve them on your own. Your solution should be submitted as a single script (m-file) in the Ilias system. Each task should be solved in its own ``cell''. Each cell must be executable on its own. The file should be named according to the -following pattern: ``variables\_datatypes\_\{lastname\}.m'' +following pattern: ``vectors\_\{lastname\}.m'' (e.g. vectors\_mueller.m). \begin{questions} @@ -159,7 +159,7 @@ following pattern: ``variables\_datatypes\_\{lastname\}.m'' \begin{solution} \code{x = linspace(0, 99, 100);} \end{solution} - \part use \code{disp()) to display the first, last, fifth, 24th and the second-to-last value on the command line. + \part use \code{disp()} to display the first, last, fifth, 24th and the second-to-last value on the command line. \begin{solution} \code{disp(x(1))\\ disp(x(end))\\ disp(x(5))\\ disp(x(24))\\ disp(x(end-1))} \end{solution} diff --git a/programming/exercises/vectors_matrices.tex b/programming/exercises/vectors_matrices.tex index 5c7d79c..5726b64 100644 --- a/programming/exercises/vectors_matrices.tex +++ b/programming/exercises/vectors_matrices.tex @@ -14,7 +14,7 @@ %%%%% text size %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage[left=20mm,right=20mm,top=25mm,bottom=25mm]{geometry} \pagestyle{headandfoot} -\header{{\bfseries\large Exercise 2}}{{\bfseries\large Vectors}}{{\bfseries\large 18. Oktober, 2017}} +\header{{\bfseries\large Exercise 2}}{{\bfseries\large Vectors}}{{\bfseries\large 03. November, 2020}} \firstpagefooter{Dr. Jan Grewe}{Phone: 29 74588}{Email: jan.grewe@uni-tuebingen.de} \runningfooter{}{\thepage}{} diff --git a/programming/lecture/programming.tex b/programming/lecture/programming.tex index 3e6d23d..80eb762 100644 --- a/programming/lecture/programming.tex +++ b/programming/lecture/programming.tex @@ -18,7 +18,7 @@ simple. The ultimate goal of scientific computing is to analyze gathered data, correlate it with e.g. the stimulus conditions and infer rules and -dependencies. These may be used to constrain model that allow us to +dependencies. These may be used to constrain models which allow us to understand and predict a system's behavior. In order to work with data we need to store it somehow. For this purpose we use containers called \emph{variables}. Variables store the data and are named for easier @@ -83,8 +83,8 @@ the \code{double} (a numeric data type, see below) data type. In line 9, however, we create a variable \varcode{z} and assign the character ``A'' to it. Accordingly, \varcode{z} does not have the numeric \code{double} data type but is a -\enterm{character} type. \textbf{Note:} \matlab{} uses single quotes for -both characters or strings of characters. +\enterm{character} type. \textbf{Note:} \matlab{} uses single quotes +for characters and double quotes for strings of characters. There are two ways to find out the actual data type of a variable: the \code{class()} and the \code{whos} functions. While \code{class()}