Robert G. Nelson (rgnelson)
Moderator Username: rgnelson
Post Number: 538 Registered: 06-2003
| Posted on Monday, February 13, 2006 - 03:29 pm: | |
Since you haven't said what coordinate controls the variation, or what range the coordinate takes on, I will make something up: If the temperature is 20 at time=t0 and varies linearly in time to a value of 100 at time=t1, then vtemp = 20 + (100-20)*(t-t0)/(t1-t0) will define a varying temperature, as will any arithmetic rearrangement of that expression. Alternatively, you can say vtemp = 20+(100-20)*URAMP(t-t0,t-t1) If the variation is something other than linear, then you write the algebraic expression for the shape you want. |