Errata file for MATLAB Recipes for Earth Sciences, by Martin H. Trauth, Springer 2021 Date: 15 Dec 2021 Note: Errata file does not typographic or grammatical errors which are not relevant in terms of content. P.7, 69, 145, 196, 239, 262, 341, 440, 480, 483, replace "parameter" by "variable". P.16, replace "complex conjugate transpose" by "transpose". P.29, replace "open interval" by "closed interval". P.62, replace "y2 = sin(x)" by "y2 = cos(x)", also in the files myproject.m and myproject.mlx in the supplement. P.74, replace equation for Fisher's skewness by skewness = {\frac{\sum\limits_{i = 1}^N{{{({x_i} - \bar x)}^3}/N}}{{{s^3}}}} P.75, replace equation for Fisher's kurtosis by kurtosis = {\frac{\sum\limits_{i = 1}^N{{{({x_i} - \bar x)}^4}/N}}{{{s^4}}}} P.106, Par.1 and 2, sa, sb, na, nb, phia, and phib should be subscript a and b. P.124, Par.4 An should be subscript n. P.137, Par.2, replace sr by sr with subscript r. P.137, replace first equations by {s}_{\bar{y}}=s/\sqrt{N} P.140, replace /delta by /partial on this page. P.146, Figure 4.1, y-intercept on the left and in the equation must be the same, 21.2 according to the figure caption. P.160, last Par., change to "The p-value of 0.1481 indicates that we cannot reject the null hypothesis that the residuals follow a Gaussian distribution." P.163, Figure 4.7b erroneously shows the result from the previous section 4.5. Here you should see the plot generated by the code on the same page. P.173, Par.2, change "Classical regression ..." by "Log-transforming the y-values has two important consequences that can influence the result. First, if the relationship between the data is of the type y=a0+a1∙ex, then logarithmizing y-values in the form log(y) does not provide a complete linearization of the data because the parameters a0 and a1 are not ignored. Second, classical regression ...". P.184, replace second equation by {X_{xx}}(f) = \sum\limits_{k = 0}^M {corr_{xx}(k)w(k)\;{e^{i2\pi fk/{f_s}}}} P.184, 187, 200, replace "Fast Fourier Transformation" by "Fast Fourier Transform". P.187, 190, replace xn by xns, also in recipes_5.m. P.188, replace "If nfft is even" by "If x is real". P.206, Par.2, in "z is (1-exp(-z))M." the "M" should be superscript. P.208-209, replace "significance" by "confidence". Replace variable "signif" by "confid". P.244, Figure 5.25 caption, replace "phase space vectors (t1) and (t2)" by "phase space vectors s(t1) and s(t2)". P.248, in three places the variable s needs to be replaced by xs: xs = x(1:5:4000,1); n = length(xs); y(:,mi) = xs([1:n2] + tau*(mi-1)); P.329, 333f, 503, significance level of 95% should be 5%. P.217, last Par., replace "mean" by "median". P.270, Par.4, bi should be subscript i. P.283, MATLAB code, remove first two lines to generate noise and replace xn14 by x14 in the last line, also in the recipes_6.m file. P.308, [LON,LAT] = meshgrid(35:1/1200:37,-1:1/1200:0); should be [LON,LAT] = meshgrid(35:1/1200:37,0:1/1200:1); P.315, Par.2 and Fig. 7.5, the method described to select control points from a triangular mesh, inspired by the text of Swan and Sandilands (1995), is a valid technique but not a triangulation. Also the description of the Delaunay triangulation is not correct and should be removed. P.315, replace "The z-value of the grid point is computed from the z-values of the three grid points." by "The z-value of the grid point is computed from the z-values of the control points at the vertices of the triangle." P.334, replace equation for the standard error by { s }_{ e }=\frac { 0.26136 }{ \sqrt { { n }^{ 2 }/A } } to correct the value of the numerator "0.27136" by "0.26136". The MATLAB code on P.335, however, is correct as it correctly uses "0.26136". P.341, Par.4, zr,c should be subscript r,c; zr+y,c+x should be subscript r+y,c+x P.348, replace exponent 2 by k in the transformation formula P.349, Fig. 7.18, remove x- and y-coordinate axes, remove angle alpha, and add vector arrows to h. P.351, replace equation for variogram estimator by \[{\gamma _E}(h) = \frac{1}{{2*N(h)}} \cdot \sum\limits_{i = 1}^{N(h)} {{{({z_{x_{i}}} - {z_{x_{i + h}}})}^2}} \] P.353, replace equation for exponentional model by \gamma_{exp}(h)=c\cdot\left({1-\exp\left({-3\cdot\frac{h}{a}} \right)}\right) P.361, Fig. 7.23b, colorbar is scaled the wrong way round. P.377, replace "colormap(hot)" by "colormap(hot(16))". P.386, also in recipes_8.m, without a significant change of the result and Figure 8.3, replace the coordinates of the pixels in fixed points by fixedpoints(1,:) = [1,1]; % UL fixedpoints(2,:) = [4200,1]; % LL fixedpoints(3,:) = [1,4100]; % UR fixedpoints(4,:) = [4200,4100]; % LR and add the line newnaivasha_rgb = permute(newnaivasha_rgb,[2,1,3]); after imwarping naivasha_rgb. P.411, Figure 8.8, the colors of the graphic should be, from top to bottom: red, green, blue. P.421, replace "We next determine the background of the lithic grains, which basically means the texture of the black foil on which the grains are located." by "We next determine the background of the image." P.424, replace "ptheta parameter space" by "(theta,rho) parameter space". P.424, Figure 8.11 a, change x and y axis labels. P.424, Figure 8.11 b, replace y1cos(theta) and y2cos(theta) by y1sin(theta) and y2sin(theta). P.447, replace first line of MATLAB code to compute newdata by newdata = V' * data'; also in recipes_9.m. P.470, replace equation for X1 by { X_{ 1 } }=({ x_{ 11 } },\; { x_{ 12 } },\; ... ,\; { x_{ 1p } }), and for X2 by { X_{ 2 } }=({ x_{ 21 } },\; { x_{ 22 } },\; ...,\; { x_{ 2p } }) P.471, replace equation for correlation similarity index by r_{X_1X_2}=\frac{{\sum\limits_{i=1}^n{({x_{1i}}-{{\bar{x}}_1})({x_{2i}}-{{\bar{x}}_2})}}}{(n-1){s_{X_1}}{s_{X_2}}} P.474, replace "cophenet" by "cophenetic" P.499-501, replace degrees by radians on the x-axis of Figure 10.5. Replace the following MATLAB code in the book and the electronic supplementary material: cos(theta_radians-mu_radians)) by cos(theta_radians(1,:)-mu_radians)); theta(i,:)=theta(1,:) by theta_radians(i,:) = theta_radians(1,:); plot(theta(i,:),mises(i,:)) by plot(theta_radians(i,:),mises(i,:)); axis([-180 180 0 max(mises(i,:))]) by axis([-pi pi 0 max(mises(i,:))])