0 valutazioniIl 0% ha trovato utile questo documento (0 voti)
15 visualizzazioni1 pagina
This document contains code to calculate the principal strains and directions from a given strain matrix. It defines the strain matrix, calculates the principal values and directions using the eig function, and displays the results, showing the three principal strain values and the corresponding principal direction vectors.
This document contains code to calculate the principal strains and directions from a given strain matrix. It defines the strain matrix, calculates the principal values and directions using the eig function, and displays the results, showing the three principal strain values and the corresponding principal direction vectors.
This document contains code to calculate the principal strains and directions from a given strain matrix. It defines the strain matrix, calculates the principal values and directions using the eig function, and displays the results, showing the three principal strain values and the corresponding principal direction vectors.
e=[2,-2,0;-2,-4,1;0,1,6]*(10^(-3)); % Calculate principal values L and directions N [N,L]=eig(e); fprintf('Principal Values') disp(diag(L)') fprintf('Principal Directions') N1=N(:,1)' N2=N(:,2)' N3=N(:,3)'