Clear Filters
Clear Filters

solving equation when values of input are constantly varying

2 views (last 30 days)
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 Comment
Stephen23
Stephen23 on 9 May 2017
Edited: Stephen23 on 9 May 2017
"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!

Sign in to comment.

Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!