Page 1 of 1

Value of variable from set time

Posted: Tue Jan 26, 2010 10:06 pm
by mikdale
Hi all

I am trying to find a way to get the value of a variable, say x, from a specific timestep, t = 10, and input that into the equation for another variable, say y such that

y = F(x(t=10))

I've thought of an inelegant way to do it by using a delay function and increasing the value of the delay time at each time step, but I'm sure there must be another (less bodge-job) way to do it but I can't figure it.

Cheers

Mik

[Edited on 1-26-2010 by mikdale]

Posted: Tue Jan 26, 2010 10:46 pm
by Administrator
Will "SAMPLE IF TRUE" do what you need?

Posted: Wed Jan 27, 2010 1:00 am
by mikdale
Maybe, I'll give it a go

Many thanks

Mik

Posted: Wed Jan 27, 2010 2:45 am
by mikdale
That worked.

Thank you, mysterious stranger...


...whoever you are!?! ;)