solving equation when values of input are constantly varying

1 次查看(过去 30 天)
i have an equation 't = 0.01 * P^(-0.25) exp( 6000/tg)', where p and tg are varying everytime. finally i have 32 values of tg and p. how can i get 32 values of t using a single equation and also not varying the input manually everytime. one solution which i was thinking is that i should store p and tg values in a matrix and then write some code so that in every iteration it changes and value of t gets stored after every iteration in a matrix? so please tell me how can i solve it or hhow can i do it?
  1 个评论
Stephen23
Stephen23 2017-5-9
编辑:Stephen23 2017-5-9
"i was thinking is that i should store p and tg values in a matrix and then write some code so that in every iteration it changes and value of t gets stored after every iteration in a matrix"
That would be a good way to solve this task. Go for it!

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Mathematics and Optimization 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by