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

1 回表示 (過去 30 日間)
Mejo Kuriyaku
Mejo Kuriyaku 2021 年 11 月 20 日
回答済み: Daksh 2022 年 12 月 20 日
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 Center および File ExchangeLoops 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