a = [38 2 13; 5 23 11; 19 3 17] b = [6 17 29; 43 15 8; 1 4 22] c = [14 9 1; 2 31 7; 8 20 6] berechnen sie f = d * et in matlab

To calculate f = d * et, we first need to calculate the eigenvectors and eigenvalues of matrix a.

main.m
a = [38 2 13; 5 23 11; 19 3 17];
[eig_vec, eig_val] = eig(a);
d = eig_val * eye(size(a)); % create a diagonal matrix of eigenvalues

et = eig_vec'; % transpose of eigenvector matrix

f = d * et; % calculate f
209 chars
8 lines

Alternatively, we can compute f directly using the eig function in Matlab:

main.m
a = [38 2 13; 5 23 11; 19 3 17];
[f, d] = eig(a);
50 chars
3 lines

Note that f will contain the eigenvectors of a, and d will contain the eigenvalues.

gistlibby LogSnag