Professional Documents
Culture Documents
Intro
• MATLAB installed
• reviewed MATLAB Basics
– beginners’ tutorials
– examples (esp. Working with arrays)
MATLAB
Submission
Please submit one zipped file named ID\_ES01.zip where ID stands for your id (e.g.
se14m666\_ES01.zip) containing:
• An m-file called ES01.m which contains a (well documented) cell for each problem on this
sheet or individual m-files named after the problems (e.g. ES01_01_vector.m).
• All additional functions and/or files (such as images)
1. Vector
MSE-MBV-WS1617 1
Abbildung 1: SineWavePlot
2. SineWave
Create a vector y with the same number of elements as t. Let the values yi = sin(ti ) with i = 1 . . . N
and plot y versus t for all values of N in different colors in one plot (Fig. SineWavePlot).
Set all negative values vi in y to −vi and display in a separate figure. Use a logical array!
3. Gauss
4. Matrices
Create a 2 dimensional matrix of some test data (at least 100x100) and then
– sum of rows
– sum of columns
– mean of rows
– mean of columns
– count of values below a certain threshhold
– mean of values below that threshhold
MSE-MBV-WS1617 2
Abbildung 2: Gauss
MSE-MBV-WS1617 3
Checklist:
• I have used and/or feel comfortable using at least four of the following functions for matrix
creation
– Repmat
– Linspace
– Zeros
– Ones
– Cat
– Diag
– Eye
• I have used and/or feel comfortable using at least four of the following functions concerning
matrix dimensions
– Length
– Ndims
– Numel
– Size
– Height
– width
• I have used and/or feel comfortable using at least four of the following functions for matrix
reshaping
– circshift
– diag
– flip
– fliplr
– fliud
– reshape
– sort
– shiftdim
– transpose
– Min
– Max
– Mean
– Median
– Sum
MSE-MBV-WS1617 4