[gradsusr] Using tloop
Stephen McMillan
smcmillan at planalytics.com
Wed Jun 12 16:58:22 EDT 2019
Brian,
You are right, the first timestep won't plot because it's undefined. Try
this:
Plot the first value:
'set t 1'
'd var1'
Plot the remaining values:
'set t 2 last'
'd tloop(var1 - var1(t-1)) ' or 'd var1-var1(t-1)'
Stephen McMillan
On Wed, Jun 12, 2019 at 4:33 PM Brian Gaze <brianw.gaze at googlemail.com>
wrote:
> Hi,
>
> I'm trying to use tloop like this:
>
> 'set t 1 last'
> 'd tloop(var1 - var1(t-1)) '
>
> The problem I get (I think) is that the first value isn't calculated
> because t=1 and therefore t-1 does not exist.
>
> Can anyone tell me how to deal with this and plot the first value as well
> as the following ones?
>
> Thanks
>
> Brian
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
--
***************************************************The information
contained in this e-mail message is intended only for the use of the
recipient(s) named above and may contain information that is privileged,
confidential, and/or proprietary. If you are not the intended recipient,
you may notreview, copy or distribute this message. If you havereceived
this communication in error, please notify the sender immediately by
e-mail, and delete the original
message.***************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190612/dd3c4f1f/attachment.html>
More information about the gradsusr
mailing list