aboutsummaryrefslogtreecommitdiffstats
path: root/vorlesungen/slides/5/verzerrung/verzerrung.m
blob: 028e7f975fc13589a6b8009862c5e95c627c3130 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#
# verzerrung.m
#
# (c) 2021 Prof Dr Andreas Müller, OST Ostschweizer Fachhochschule
#

rand("seed", 4712);

A = eye(2) + 1.0 * (rand(2,2) - 0.5 * ones(2,2))

[V, lambda] = eig(A)

B = A - lambda(1,1) * eye(2)