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

1 visualizzazione (ultimi 30 giorni)
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)

Risposte (1)

Daksh
Daksh il 20 Dic 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!

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by