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

1 view (last 30 days)
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

Answers (1)

Hirak
Hirak on 23 Dec 2018
Use.* instead of *

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!