My answer is singular, but how can I get rid of it

조회 수: 1 (최근 30일)
Saber Sarraf
Saber Sarraf 2015년 9월 15일
답변: Hirak 2018년 12월 23일
Hi, I want to get a result of 6*6 matrix, but my answer is singular. I don't know how I can solve it. my answer should look like as
0.0228 0.0092 0.3766 0 0 0
0.0096 0.0205 0.3765 0 0 0
0.0084 0.0079 2.1596 0 0 0
0 0 0 0.0054 0 0
0 0 0 0 0.0063 0
0 0 0 0 0 0.0060
please help me. Thanks in advance
program is :
S_i = Eshelby_tensor;
C_m = Tangent_tensor_matrix;
C_i = Tangent_tensor_inclusion;
II = [1, 0, 0, 0, 0, 0;
0, 1, 0, 0, 0, 0;
0, 0, 1, 0, 0, 0;
0, 0, 0, 1, 0, 0;
0, 0, 0, 0, 1, 0;
0, 0, 0, 0, 0, 1];
C_SC_two = rand(6,6);
for j = 2:6
for i = 2:6
c_i =0.2;
C_SC_two(j,i) = C_m + ((c_i)*(C_i - C_m)) * (II* (1-c_i)*(S_i)*(C_SC_two(j-1,i-1))^(-1) * (C_i - C_m))^(-1);
end
end

답변 (1개)

Hirak
Hirak 2018년 12월 23일
Use.* instead of *

카테고리

Help CenterFile Exchange에서 Operating on Diagonal Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by