Skip to content
Prev 73546 / 398498 Next

How to use the function "plot" as Matlab

On 13-Jul-05 Prof Brian Ripley wrote:
This, and Robin's suggestion, are good practical solutions especially
when only a few graphs (2 or 3 or ... ) are involved. However, their
undelying principle is to accumulate auxiliary variables encapsulating
the graphs which will eventually be plotted.

However, once in a while I like to make a really messy graph of
superimposed sample paths of a simulated stochastic process, perhaps
with several dozen replications and many points (even 5000) along
each sample path. An example where this has a real practical point
is diffusion from the chimney stack of, say, an incinerator. The
resulting plot can give a good picture of the "average plume",
allowing the viewer to form an impression of the variation in
concentration along and on the fringes of the plume.

This is definitely a case where "dynamic rescaling" could save
hassle! Brian Ripley's suggestion involves first building a
matrix whose columns are the replications and rows the time-points,
and Robin Hankin's could be easily adapted to do the same,
though I think would involve a loop over columns and some very
long vectors.

How much easier it would be with dynamic scaling!

Best wishes,
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 13-Jul-05                                       Time: 11:00:01
------------------------------ XFMail ------------------------------