How to assign the answer from the for loop to an other equation

1 次查看(过去 30 天)
I want to create a equation with T_evapuration_1 and T_evaporation_2 . The value of and has to substitue to the equation of T_evapuration_1 U1 and U2. Should I use for loop ? Can you please help to slove this statement.Thank you
T_evaporation_i = T_s - Delta_T_1
U_i = 0.001*(2252.54+4.81748*T_evaporation_i)

回答(1 个)

Daksh
Daksh 2022-12-20
It is my understanding that you wish to iterate over 'i' which is the index or position in the list of temperatures for evaporation. You can use arrays with length set to size of dataset, and index array for position 'i' with the command "T_evaporation(i)". Use a for loop to iterate for all relevant values of 'i' and frame your mathematical equation for other variables as well.
Hope it helps!

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by