how to loop a equation.

1 view (last 30 days)
surawut.A
surawut.A on 22 Aug 2021
Commented: darova on 23 Aug 2021
guys, I need some help
D==0.27*(1.04/-0.22)*exp((-246)/(R*T))
R=8.314
T=[600:50:800]
I want to loop a data above to find D with different T.
and if I want to use data D, can I use D symbol?
thank you for helping me, im new

Accepted Answer

Wan Ji
Wan Ji on 22 Aug 2021
Why use symbol?
R=8.314;
T=[600:50:800];
D=0.27*(1.04/-0.22)*exp((-246)./(R*T))
The D array is good to use
D =
-1.214947318228101 -1.219564871571260 -1.223536739934003 -1.226989487755193 -1.230018633832494
  3 Comments
Wan Ji
Wan Ji on 22 Aug 2021
Edited: Wan Ji on 22 Aug 2021
My pleasure having helped you!

Sign in to comment.

More Answers (0)

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!