Error while working with multiple nodes

Hello Everyone,
I am working with 803 node points to simulate the temperature effect. is there any way to assign the same initial condition for the loop?
Also while working the loop is showing error, so can anyone help me with this?
Please find the codes as below:
T803(1) = 298 %upto T1(1) = 298, for all nodes, initial condition of loop is same i.e. 298.
T802(1) = 298
T801(1) = 298
.
.
.
.
.
T1(1) = 298
for i = 1:100000
T803(1) = 2 * Foc * [T802(i) + T_inf * Bic + ((q * x)/k_c )] + [1 - (2 * Foc) - (2 * Foc * Bic)] * T803(i)
T802(1) = Foc * [T801(i) + T803(i)] + [1 - 2 * Foc] * T802(i)
T801(1) = Foc [T800(i) + T802(i)] + [1 - 2 * Fot] * T801(i)
for j = 800:-1:2
T(j)(1) = Foc [T(j-1)(i) + T(j+1)(i)] + [1 - 2 * Fot] * T(j)(i)
end
T1(1) = 2 * Fot * [T2(i) + Bit * 25] + [1 + (2 * Fot) - (2 * Fot * Bit)] * T0(i)
end

질문:

2016년 4월 12일

답변:

2016년 4월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by