Community Profile

photo

Tristan Phillips-Page


Last seen: 3 years ago Active since 2018

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


How to I get the initial value of Ts_out to become the answer of the Ts_out equation in the for loop, thus changing the initial value of Ts_out?
Ti_in(1) = 120 Ts_out(1) = 60 for i= 1:1000 Ti_in(i+1) = Ti_in(i) + dt_i*(Ti_in(i)-Ts_out(i)); Ts_out(i+1)...

6 years ago | 0 answers | 0

0

answers

Question


Error states 'Subscript indices must either be real positive integers or logicals' when trying to complete this for loop?
if true Ti_in(1) = 120; Ts_in(1) = 60; rho_i = 920; rho_s = 997; Cp_i = 2100; Cp_s = 4180; r_i = 0.01; r_s = 0...

6 years ago | 1 answer | 0

1

answer