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

1 Ansicht (letzte 30 Tage)
Mejo Kuriyaku
Mejo Kuriyaku am 20 Nov. 2021
Beantwortet: Daksh am 20 Dez. 2022
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)

Antworten (1)

Daksh
Daksh am 20 Dez. 2022
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!

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by