what does this do? [v,d] = eig(k,m) in matlab

The function [v,d] = eig(k,m) in MATLAB computes the eigenvectors and eigenvalues of a generalized eigenvalue problem defined by matrices k (stiffness matrix) and m (mass matrix) such that k*v = m*v*d. The output matrices are:

  • v: matrix whose columns are the eigenvectors of k.
  • d: diagonal matrix whose elements are the corresponding eigenvalues of k.

This function is commonly used in structural dynamics and other areas of engineering to compute natural frequencies and mode shapes of a system.

related categories

gistlibby LogSnag