필터 지우기
필터 지우기

eigen values (principle stresses) of large date

조회 수: 1 (최근 30일)
fadzhi
fadzhi 2016년 8월 24일
답변: Farouk Moukaddem 2016년 8월 26일
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?

채택된 답변

Farouk Moukaddem
Farouk Moukaddem 2016년 8월 26일
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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by