Borrar filtros
Borrar filtros

eigen values (principle stresses) of large date

1 visualización (últimos 30 días)
fadzhi
fadzhi el 24 de Ag. de 2016
Respondida: Farouk Moukaddem el 26 de Ag. de 2016
Hi all, I need to calculate the eigenvalues(principle stresses). My data is based on time and for each time interval, i have 9 components (3x3 matrix). I am not familiar with matlab but i learned that i can calculate the eigenvalue with a simple eig() command. So in this case, how can use this command (will it require a for loop) so that in the end, i am able to plot the time vs. eigen values. (3 values). Will appreciate any ideas or suggestion?

Respuesta aceptada

Farouk Moukaddem
Farouk Moukaddem el 26 de Ag. de 2016
Hi Fawad,
You can use a for-loop and the "eig" function to find the eigenvalues of the three matrices you have, by grouping the matrices into a cell array and iterating over it.
Refer to the following example:
A=[1 2;3 4],
B=[5 6;7 8];
C=[9 10;11 12];
D={A,B,C}; % Creating the cell array
for i=1:3
eig(D{i})
end
Refer to the following documentation link for more information about the "eig" function: http://www.mathworks.com/help/matlab/ref/eig.html
Best,
Farouk

Más respuestas (0)

Categorías

Más información sobre Linear Algebra en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by