plotting a randomly generated envelope curve


    Apr 21 2013 | 2:16 am
    What's the best way to plot a randomly generated envelope curve?
    I have a function setup to randomly generate: 1) number of points on the envelope 2) x-values (time values) and 3) y values (between 0-1)
    So far, the most likely object seems to be jit.mgraphics. However, it requires that information be sent to it point by point.
    Is there a function that would allow me to send it N number of x/y pairs, and plot the resulting shape?
    Thanks,

    • Apr 21 2013 | 2:47 am
      Have a look at the function object, which does what you describe and is designed to control the line~ object (or curve~ object) to make envelopes.
    • Apr 21 2013 | 3:53 am
      Thanks, Chris, but the function object won't accept a list of x/y pairs as input.
      I could feed them directly to the line~ object, but I wanted to have a graphic image to show my students on how the envelope plot is changing.
      Any suggestions?
      Arun
    • Apr 21 2013 | 4:09 am
      Could you do it with LCD? That would definitely allow you to use XY pairs
    • Apr 21 2013 | 5:21 am
      No problem, just break your list up into x-y pairs with zl, like this.
    • Apr 21 2013 | 5:29 am
    • Apr 22 2013 | 6:29 am
      Thank you Christopher!
      That was exactly what I needed!
      Arun